On Thursday 21 April 2005 20:47, Robert Engels wrote: > Has there ever been any work done to allow the searching on stored, but > unindexed fields?
Only indexed fields can be searched, but any field can be both indexed and stored. > It does not seems to be trivial, since a user could use and/or constructs > that mixed indexed and non-indexed fields. > > On a related note, does lucene optimize the search based on term frequency? > > So that if I use +field1:value1 and +field2:value0 and it knows that the > second term is much more unique, it will do that search first, and use > skipTo on the first one? If so, does the same happen for range searches? The implementation of conjunctions (both terms required) is actually symmetrical on both terms, but the effect is what you expect. Range queries are disjunctions and they are implemented differently. Please have a look at BooleanScorer and ConjunctionScorer in package org.apache.lucene.search for the details. Regards, Paul Elschot. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
