Echoing Markus - use the tokenized field to return results, but have a duplicate field of fieldtype="string" to show the untokenized results. E.g. facet on that field.
-----Original Message----- From: Markus Jelsma [mailto:markus.jel...@buyways.nl] Sent: Wednesday, August 04, 2010 4:18 PM To: solr-user@lucene.apache.org Subject: RE: Indexing fieldvalues with dashes and spaces You shouldn't fetch faceting results from analyzed fields, it will mess with your results. Search on analyzed fields but don't retrieve values from them. -----Original message----- From: PeterKerk <vettepa...@hotmail.com> Sent: Wed 04-08-2010 22:15 To: solr-user@lucene.apache.org; Subject: RE: Indexing fieldvalues with dashes and spaces I changed values to text_ws Now I only seem to have problems with fieldvalues that hold spaces....see below: <field name="city" type="text_ws" indexed="true" stored="true"/> <field name="theme" type="text_ws" indexed="true" stored="true" multiValued="true" omitNorms="true" termVectors="true" /> <field name="features" type="text_ws" indexed="true" stored="true" multiValued="true"/> <field name="services" type="text_ws" indexed="true" stored="true" multiValued="true"/> <field name="province" type="text_ws" indexed="true" stored="true"/> It has now become: "facet_counts":{ "facet_queries":{}, "facet_fields":{ "theme":[ "Gemeentehuis",2, "&",1, <======== still & is created as separate facet "Strand",1, "Zee",1], "features":[ "Cafe",3, "Danszaal",2, "Tuin",2, "Strand",1], "province":[ "Gelderland",1, "Utrecht",1, "Zuid-Holland",1], <======== this is now correct "services":[ "Exclusieve",2, "Fotoreportage",2, "huur",2, "Live",1, <======== "Live muziek" is split and separate facets are created "muziek",1]}, "facet_dates":{}}} -- View this message in context: http://lucene.472066.n3.nabble.com/Indexing-fieldvalues-with-dashes-and-spaces-tp1023699p1023787.html Sent from the Solr - User mailing list archive at Nabble.com.