Re: Similarity formula documentation is misleading + how to make field-agnostic queries?

2015-01-14 Thread Michael Sokolov
In practice, normalization by field length proves to be more useful than normalization by the sum of the lengths of all fields (document length), which I think is what you seem to be after. Think of a book chapter document with two fields: title and full text. It makes little sense to weight

trouble with Collector and FieldCache

2015-01-14 Thread Sascha Janz
hello,   i am using lucene 4.6.  in my query i use a collector to get field values.   setNextReader is implemented as below.   public void setNextReader(AtomicReaderContext context) throws IOException { cacheIDs = FieldCache.DEFAULT.getInts(context.reader(), "id", true); } and collect public