Skip to content
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

Incomplete Javadoc for DirectoryReader#indexExists #13583

Open
windmueller opened this issue Jul 18, 2024 · 1 comment
Open

Incomplete Javadoc for DirectoryReader#indexExists #13583

windmueller opened this issue Jul 18, 2024 · 1 comment

Comments

@windmueller
Copy link

Description

The Javadoc of DirectoryReader#indexExists seems to be incomplete:

Returns <code>true</code> if an index likely exists at the specified directory. Note that if a
corrupt index exists, or if an index in the process of committing
@uschindler
Copy link
Contributor

uschindler commented Jul 18, 2024

Yeah, it looks like its missing the second part of the sentence:

"...or if an index in the process of committing the return value is not reliable."

Actually the code only checks if there is at least one segment_XY file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants