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

Add Searcher.search(Query, int)

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.4
    • core/search
    • None
    • New

    Description

      Now that we've deprecated Hits (LUCENE-1290), I think we should add this trivial convenience method to Searcher, which is just sugar for Searcher.search(Query, null, int) ie null filter, returning a TopDocs.

      This way there is a simple API for users to retrieve the top N results for a Query.

      Attachments

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: