New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making Lucene.Net.Join.TermsQuery public #413
Comments
So I investigated this a bit. Thank you for linking to the public docs which do in fact show the method public in version 5.2. The odd thing is that when I look up the class in the Lucene Java 5.x repo I see that it does not have an access modifier. And when no access modifier is specified in Java the default is package private which means it is not publicly available. In the latest version of Java Lucene, the This causes me to think the Java documentation is wrong to show it as a public class. But I would expect the java documentation to be generated from the code base so I'm a bit baffled. Perhaps someone else can chime in about this. |
Looks like this is a case of mistaken identity. There is a TermsQuery class in the In Lucene 5.1.0, a new public TermsQuery class was added to the In principle, I don't see any issue with making the |
Ah okay that was my mistake. But to clarify, when using query time Joins, we find the second pass of the join (which uses Lucene.Net.Join.TermsQuery) performs a lot better than using a BooleanQuery with multiple Occur.Should clauses or a TermsFilter. We have scenarios where we essentially construct our own multi-term queries and wanted to explore using the TermsQuery (or something comparable in terms of performance) directly. |
@sthmathew I finally got a chance to ask the Lucene team whether this would be something they would consider, and it turns out that So, there are a couple of ways this could go:
I suspect the public |
Closing this, as it is simply more unplanned work to do for the 4.8.0 release and will eventually be available when Lucene.NET is upgraded. Porting the implementation from Lucene 5.2 is likely possible for those who wish to have that version. |
Would it be possible to make TermsQuery public?
It seems a lot more performant than a BooleanQuery or even a TermsFilter so I think it would be quite useful if exposed publicly. (I believe it's public or at least publicly documented in 5.0 onwards).
The text was updated successfully, but these errors were encountered: