Hello, I have about 30 tags that are boolean in nature. Any number of
them can be association or not with a Document in my index. I want to
be able to search over the index and filter out based on these tags.
For example, suppose I had a tag called RED and one called BLUE. And
suppose I wanted to assign RED to a pages that had the color red on
them, and BLUE to the blue ones. Then, when searching I'd like to
search with this sort of logic, find all pages q="something" and
RED=y.
I read somewhere about combining fields if possible. Is this a good
idea here? and then parsing out during search? Is there standard way
of doing this that I should follow?
I have code now that basically does this
doc.add(new Field("U",site[1], Field.Store.YES, Field.Index.UN_TOKENIZED));
where Document doc and site[1] is a String.
Any advice would be greatly appreciated.
thanks