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

JWeb1TSearcher hides errors when data could not be found? #1

Open
zesch opened this issue Mar 27, 2015 · 0 comments
Open

JWeb1TSearcher hides errors when data could not be found? #1

zesch opened this issue Mar 27, 2015 · 0 comments

Comments

@zesch
Copy link
Member

zesch commented Mar 27, 2015

JWeb1TSearcher returns 0 if an index map file could not be found and -1 if an index file could not be found. That seems odd. I think it would be better to throw an IOException in that case. If that is not desirable, it should probably return 0 in both cases or throw specific exceptions.

(originally reported by Richard Eckart, but I don't want to use the issue exporter for a single issue :)

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

No branches or pull requests

1 participant