Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7820

overview-summary.html: no suitable method for isearcher.search(query, null, 1000)

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 6.5.1
    • None
    • general/javadocs
    • 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

          Activity

            People

              Unassigned Unassigned
              nimarukan Nimarukan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m