Re: default or cascaded fallback query

2013-11-14 Thread Harald Kirsch
Hmm, this needs some digging into as it seems. I must admit that by looking over the code I get yet not idea where the real matching of terms against the index happens. If someone could point to the place in the code where the core test of a term against the index is, that would help a lot. Or

Re: default or cascaded fallback query

2013-11-13 Thread Michael Sokolov
It sounds as if you want to create a new Query type. I would start by having a look at BooleanQuery and trying to write an analogous object that does what you want instead. -Mike On 11/13/2013 10:03 AM, Harald Kirsch wrote: Hello all, I wonder if a query according to the following rules is

default or cascaded fallback query

2013-11-13 Thread Harald Kirsch
Hello all, I wonder if a query according to the following rules is possible. We have several fields with increasing hierarchy, say f_0 to f_{2n}. The rule to search for a term is that starting with index 0 the first field to contain a hit defines whether to return the document or not, i.e.: