Mental note: think before post ... this is a simple job for a Servlet filter.
sorry for the noise.
--
Luis Neves
Luis Neves wrote:
Hello all.
We have a product catalog that is searchable via Solr, by default we
want to exclude results from the "Adult" category unless the search
terms match a predetermined list of words.
Example:
Client searches for "doll", "doll" is not on the list -> we *don't want*
to show him Adult results.
Client searched for "aphrodisiac", "aphrodisiac" is on the list -> we
*want* to show him Adult results.
Did I made sense?
FunctionQuery seems to be what I want, but it's not clear to me how to
use it in this particular case.
Can anyone point me in the right direction?
Thanks!
Luis Neves