David Smiley created LUCENE-5776:
------------------------------------

             Summary: Spatial CellTokenStream re-use
                 Key: LUCENE-5776
                 URL: https://issues.apache.org/jira/browse/LUCENE-5776
             Project: Lucene - Core
          Issue Type: Improvement
          Components: modules/spatial
            Reporter: David Smiley


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to