if you created the query targeting all three fields, then you can not. You could create a different query for each field, or post-process your results to look into the actual values you have loaded.
You could also do a projection query on each query to fetch the document ids only, and then do some bitmask AND against the different results: this bitmask would serve you as flags "yes/no" for each match option.
This is actually how filters work, so in case you need to squeeze more performance you could create a filter from your query targeting only the "color_English", and create another query targeting all fields, applying the first one as a filter on the second one.
Generally speaking, doing a search on Lucene is extremely fast, what is slow is updating & writing to the index, so unless you have a specific need for it you should not be worried in making an additional query.
_________________ Sanne http://in.relation.to/
|