Nimarukan created LUCENE-7820:
---------------------------------
Summary: overview-summary.html: no suitable method for
isearcher.search(query, null, 1000)
Key: LUCENE-7820
URL: https://issues.apache.org/jira/browse/LUCENE-7820
Project: Lucene - Core
Issue Type: Bug
Components: general/javadocs
Affects Versions: 6.5.1
Reporter: Nimarukan
Priority: Trivial
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,
100).
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
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]