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

Adrien Grand commented on LUCENE-8725:
--------------------------------------

Is my assumption correct that you are interested in this query because you 
don't want to copy the content of the BytesRefHash and because your query might 
match most of the ids that exist in the index?
This query is cheating a bit in its equals/hashCode to be cacheable without 
having to actually compare the BytesRefHash by comparing the join query, the 
join field and the index it has been generated on instead. In my opinion it'd 
be better to fork the query. Maybe the one piece that we can make public 
somewhere is the SeekingTermSetTermsEnum?

 

> Make TermsQuery public
> ----------------------
>
>                 Key: LUCENE-8725
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8725
>             Project: Lucene - Core
>          Issue Type: Wish
>            Reporter: Noble Paul
>            Priority: Trivial
>             Fix For: 8.1
>
>
> I have come across use-cases where directly accessing {{TermsQuery}} can 
> help. If there is no objection I would like to make it public



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to