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

David Smiley commented on SOLR-9027:
------------------------------------

bq. I dug into how the TermContext is being used elsewhere in Lucene. What I 
found was that the TermQuery is holding onto the TermContext and seems to be 
relying on wrapper queries to manage it properly. This is marked as an expert 
usage. The CommonTermsQuery uses this constructor. So it does appear that 
holding onto the TermContext is OK, as long as it's handled properly.

Okay.  AFAICT, the only reason TermQuery.perReaderTermState exists is because 
_some_ callers just so happen to already have the TermContext, so this saves 
getting it later.  In the case of GraphTermsQuery the QParser does not and has 
no reason to get the TermContext in advance.

> Add GraphTermsQuery to limit traversal on high frequency nodes
> --------------------------------------------------------------
>
>                 Key: SOLR-9027
>                 URL: https://issues.apache.org/jira/browse/SOLR-9027
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Joel Bernstein
>            Priority: Minor
>         Attachments: SOLR-9027.patch, SOLR-9027.patch, SOLR-9027.patch, 
> SOLR-9027.patch
>
>
> The gatherNodes() Streaming Expression is currently using a basic disjunction 
> query to perform the traversals. This ticket is to create a specific 
> GraphTermsQuery for performing the traversals. 
> The GraphTermsQuery will be based off of the TermsQuery, but will also 
> include an option for a docFreq cutoff. Terms that are above the docFreq 
> cutoff will not be included in the query. This will help users do a more 
> precise and efficient traversal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to