[ 
https://issues.apache.org/jira/browse/SOLR-773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660384#action_12660384
 ] 

patrick o'leary commented on SOLR-773:
--------------------------------------

Lucene uses a static sort comparator getCachedComparator in lucene's 
FieldSortedHitQueue.java
The assumption being that the sort comparator would never have any data in it I 
guess.

As the distances in the geo sort are a hashmap produced by the distance query, 
the ScoreDocComparator creates a memory leak
unless the scope of the  distance query is within the process block. 
It's messy but the only work around I could find.

Putting the distance query in the response builder could make this leak again.


> Incorporate Local Lucene/Solr
> -----------------------------
>
>                 Key: SOLR-773
>                 URL: https://issues.apache.org/jira/browse/SOLR-773
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Grant Ingersoll
>            Priority: Minor
>         Attachments: SOLR-773-local-lucene.patch, 
> SOLR-773-local-lucene.patch, SOLR-773-local-lucene.patch, spatial-solr.tar.gz
>
>
> Local Lucene has been donated to the Lucene project.  It has some Solr 
> components, but we should evaluate how best to incorporate it into Solr.
> See http://lucene.markmail.org/message/orzro22sqdj3wows?q=LocalLucene

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to