Details
-
Bug
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
6.5.1
-
None
-
None
-
New
Description
The example in overview-summary.html includes the lines
IndexSearcher isearcher = new IndexSearcher(ireader); ... ScoreDoc[] hits = isearcher.search(query, null, 1000).scoreDocs;
However javac complains there is no suitable method for search(Query,<null>,int).
The example runs with the null removed.
- ScoreDoc[] hits = isearcher.search(query, null, 1000).scoreDocs; + ScoreDoc[] hits = isearcher.search(query, 1000).scoreDocs;
Pages:
http://lucene.apache.org/core/6_5_1/core/overview-summary.html#overview.description
http://lucene.apache.org/core/6_5_1/core/org/apache/lucene/search/IndexSearcher.html
This overview is prominently linked as "Introduction to Lucene APIs" on the documentation page
http://lucene.apache.org/core/6_5_1/index.html
Attachments
Issue Links
- links to