Hi,

I have this scenario that I think is no unusual: solr will get a user
entered query string like 'apple pear france'.

I need to do this: if any of the terms is a country, then change the query
params to move that term to a fq, i.e:
q=apple pear france
to
q=apple pear&fq=country:france

What do you guys would be the best way to implement this?
- custom searchcomponent or queryparser
- servlet in same jetty as solr
- client code

To simplify, consider countries are just a single term.

Any pointer to an example to base this on would be great. thanks

Reply via email to