lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bny Jo <bny...@yahoo.com>
Subject How to avoid space on facet field
Date Tue, 02 Jun 2009 20:20:13 GMT

Hello, 

 I am wondering why solr is returning a manufacturer name field ( Dell, Inc) as Dell one result
and Inc another result. Is there a way to facet a field which have space or delimitation on
them?

query.addFacetField("manu");  
query.setFacetMinCount(1);
        query.setIncludeScore(true);
 List<FacetField> facetFieldList=qr.getFacetFields();
            for(FacetField facetField: facetFieldList){                
                System.out.println(facetField.toString() +"Manufactures");
                }
And it returns 
-----------------
[manu:[dell (5), inc (5), corp (1), sharp (1), sonic (1), view (1), viewson (1), vizo (1)]]



      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message