rclabo edited a comment on issue #413:
URL: https://github.com/apache/lucenenet/issues/413#issuecomment-774101557


   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](https://github.com/apache/lucene-solr/blob/branch_5x/lucene/join/src/java/org/apache/lucene/search/join/TermsQuery.java#L38)
 I see that it does not have an access modifier. And when no access modifier is 
specified in Java the default is [Package 
private](https://stackoverflow.com/questions/3530065/what-is-the-default-access-specifier-in-java/3530070#3530070)
 which means is is not publicly available.  
   
   In the latest version of Java Lucene, the `TermsQuery` class till has [no 
access 
modifier](https://github.com/apache/lucene-solr/blob/master/lucene/join/src/java/org/apache/lucene/search/join/TermsQuery.java#L37)
 which means that it's still not publicly available.  
   
   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.  


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to