The current subject and description of
https://issues.apache.org/jira/browse/LUCENE-2335
is obsolete due to new knowledge.

Is it possible to change it? If not, what is the policy here? To open a
new issue and close the old one?

Cc: To Michael McCandless as he is the reporter of the issue.


If it can be changed, I would like to propose the following:

Optimization: Locale-based sort by field with low memory overhead

The current implementation of locale-based sort in Lucene uses the
FieldCache which keeps all sort-terms in memory. Beside the huge memory
overhead, searching requires comparison of terms with collator.compare
every time, making searches with millions of hits fairly expensive.

An idea for an alternative implementation is to create a packed list of
pre-sorted ordinals for the sort terms and a map from document-IDs to
entries in the sorted ordinals list.

This results in very low memory overhead and faster sorted searches, at
the cost of increased startup-time. As the ordinals can be resolved to
terms after the sorting has been performed, this approach supports
fillFields=true.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to