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

Add example for retrieving facet counts without retrieving documents

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.7
    • 4.8, 6.0
    • modules/facet
    • None
    • New, Patch Available

    Description

      In the examples of facetting the FacetsCollector.search() is used. There are use cases where you do not need the documents that match the search.
      It would be nice if there is an example showing this.

      Basically, it comes down to using searcher.search(query, null /* Filter */, facetCollector)

      Attachments

        1. FacetOnlyExample.java
          6 kB
          Rob Audenaerde
        2. SimpleFacetsExample.java
          8 kB
          Rob Audenaerde
        3. LUCENE-5474.patch
          4 kB
          Rob Audenaerde

        Activity

          People

            shaie Shai Erera
            robau Rob Audenaerde
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: