Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5776

Spatial CellTokenStream re-use

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • modules/spatial
    • None
    • New

    Description

      It would be nice if CellTokenStreams were re-used, which are kinda heavy. This is possible without changing the API thanks to LUCENE-5634. PrefixTreeStrategy.createFields() should return Field subclasses that override TokenStream tokenStream(Analyzer analyzer, TokenStream reuse) that in turn examine re-use to ensure it's a CellTokenStream, and then re-use it if possible or create anew.

      Completing the re-use, it would be good if TreeCellIterator could be re-used, which might include the getWorldCell value.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dsmiley David Smiley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: