Hi,
those classes already disappeared much earlier because SortingMergePolicy was rewritten! They were originally marked as “experimental”. 4.8 was the release that removed them. The Sorter class is replaced using the standard “Sort/SortField/FieldComparatorSource” classes from oal.search package. To implement custom ones, now you have to implement FieldComparatorSource, create a SortField instance and pass it wrapped by Sort to SortingMergePolicy (now moved to “index” package in the “misc” module). SortingMergePolicy now takes oal.search.Sort in its constructor. See <https://lucene.apache.org/core/4_8_0/changes/Changes.html> https://lucene.apache.org/core/4_8_0/changes/Changes.html for more info. The changes are described in issue: <http://issues.apache.org/jira/browse/LUCENE-5493> LUCENE-5493: SortingMergePolicy and EarlyTerminatingSortingCollector take Sort instead of Sorter. BlockJoinSorter is removed, replaced with BlockJoinComparatorSource, which can take a Sort for ordering of parents and a separate Sort for ordering of children within a block. (Robert Muir, Mike McCandless, Adrien Grand) Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de <http://www.thetaphi.de/> eMail: [email protected] From: Hu Thomas Pan [mailto:[email protected]] Sent: Wednesday, February 24, 2016 7:14 AM To: [email protected] Subject: org.apache.lucene.index.sorting.Sorter Hi, In Lucene 4.x, there is the class org.apache.lucene.index.sorting.Sorter. In Lucene 5, however, the class seems to be disappeared. Do we know how to migrate existing Sorter classes from Lucene 4 to Lucene 5? Best, Thomas -- The journey of a thousand miles begins with one step. -- Lao Tzu Do not go where the path may lead, go instead where there is no path and leave a trail. -- Ralph Waldo Emerson
