Hello Pablo, pls check http://lucene.apache.org/core/5_1_0/MIGRATE.html Refactored Collector APIRefactored FieldComparator API
On Thu, Aug 13, 2015 at 8:37 PM, Pablo Mincz <pmi...@gmail.com> wrote: > Hi, > > I'm doing a migration from Lucene 3.6.1 to 5.2.1 and I have a custom > FieldComparator that sort the search for availables discounts. For this, > first I check that the date range is valid and later sort by the discount > amount. > > I did this in Lucene 3.6.1 but now in 5.2.1 version, the FieldComparator > has the method doSetNextReader that has a LeafReaderContext and I do not > know how to read all the fields from the LeafReader because I did not > indexed this field with DocValues. > > I tried with MultiFields but I got only one result instead of an array, and > some values are Floats. > > Someone know how to do this? > > Thanks a lot for the help. > > Regards, > Pablo. > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics <http://www.griddynamics.com> <mkhlud...@griddynamics.com>