一.首先介绍lucene涉及到的排序过程 1.1.如何自定义排序对象 你可以自定义collector对象: 亦可以自定义comparator对象: 可以自定义scoredoc对象,决定如何处理结果集合: 1.2.这几种自定义之间有何区别? 自定义collector和comparator有什么区别呢???????? Besides building your own Collector to customize how the results are stored and sorted, anot…
org.apache.lucene.index Enum Constants Enum Constant and Description DOCS_AND_FREQS Only documents and term frequencies are indexed: positions are omitted. DOCS_AND_FREQS_AND_POSITIONS Indexes documents, frequencies and positions. DOCS_AND_FREQS_AND…