Does Lucene have support for queries that operate on fields that match a specific name pattern?
Let's say that I am modeling an indexed field that can have a collection of values, but don't want the default behavior of these values appended together within the field, for the purposes of search. So my idea is to split such a field into multiple ones where the value of each is the value of each respective element, and name having a common prefix, e.g. "keywords-1", "keywords-2" etc, and index them separately. Now, at query time, I want to be able to search for a particular value, without necessarily knowing ahead of time, how many fields the document with the longest collection had. So then, am I required to manually detect all the possible fields that I created this way, prior to issuing such a query, and then OR the individual queries together - or is there a better way? Or am I just trying to reinvent the wheel and this is not a good design, period?