Organizational Research By

Surprising Reserch Topic

Solr: how to search for substring in facets

I have country field in my solr DB to represent the countries related to this item. the list of countries are PIPE separated
France | United Kingdom | Norway | UAE and another item like
Australia | Belgium | Argentina
now i need to search for all items related to United Kingdom OR Belgium i tried this*:*&version=2.2&start=0&rows=10&indent=on&facet=true&fq=country:United+Kingdom+OR+Belgium

but this didn't work! could you please guide me to how to do this search?

asked May 16, 2015 in SOLR by rajesh
0 votes

Related Hot Questions

1 Answer

0 votes
Best answer
Whats the analyses performed on the country field @ index and query time ?

Would suggest -

Index the countries and multivalued instead of separated by |. Use fieldType with minimal analysis or field type string for filtering

Filter queries should work with

fq=country:("United Kingdom" OR Belgium)
answered May 16, 2015 by rajesh