Re: How to avoid space on facet field

2009-06-03 Thread Marc Sturlese
> pattern="([^a-z])" replacement="" replace="all" > /> > > > > > > Thanks > > Boney > > > ________________ > From: Marc Sturlese > To: solr-user@lucene.apac

Re: How to avoid space on facet field

2009-06-03 Thread Bny Jo
. Thanks Boney From: Marc Sturlese To: solr-user@lucene.apache.org Sent: Wednesday, June 3, 2009 3:45:49 AM Subject: Re: How to avoid space on facet field You can configure a "facet_text&quo

Re: How to avoid space on facet field

2009-06-03 Thread Marc Sturlese
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)]] >> >> >> >> > > -- View this message in context: http://www.nabble.com/How-to-avoid-space-on-facet-field-tp23840037p23847742.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to avoid space on facet field

2009-06-02 Thread Anshuman Manur
Hey, >From what you have written I'm guessing that in your schema.xml file, you have defined the field manu to be of type "text", which is good for keyword searches, as the text type indexes on whitespace, i.e. Dell Inc. is indexed as dell, inc. so keyword searches matches either dell or inc. But

How to avoid space on facet field

2009-06-02 Thread Bny Jo
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