Hello,

in my custom request handler, I want to determine which fields are
constrained by the user.

E.g. the query (q) might be "ipod AND brand:apple" and there might
be a filter query (fq) like "color:white" (or more).

What I want to know is that "brand" and "color" are constrained.

AFAICS I could use SolrPluginUtils.parseFilterQueries and test
if the queries are TermQueries and read its Field.
Then should I also test which kind of queries I get when parsing
the query (q) and look for all TermQueries from the parsed query?

Or is there a more elegant way of doing this?

Thanx a lot,
cheers,
Martin


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to