public class

IndexSorter

extends Object
java.lang.Object
   ↳ org.apache.lucene.index.IndexSorter

Class Overview

Sort an index by document importance factor. Higher scoring documents are assigned smaller document numbers. Document weights are obtained from a specified field, which has to be single-valued and stored, with string value that represents a float number. Stored fields in the output index remain consistent, i.e. both stored fields and postings are renumbered in sync.

NOTE: this tool is unaware of documents added atomically via addDocuments(Collection) or updateDocuments(Term, Collection), which means it can easily break up such document groups.

Summary

Public Constructors
IndexSorter()
Public Methods
static void main(String[] args)
void sort(Directory input, Directory output, String field)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public IndexSorter ()

Public Methods

public static void main (String[] args)

Throws
Exception

public void sort (Directory input, Directory output, String field)

Throws
IOException