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

Add example for retrieving facet counts without retrieving documents

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.8, 6.0
    • Component/s: modules/facet
    • Labels:
      None
    • Lucene Fields:
      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. SimpleFacetsExample.java
          8 kB
          Rob Audenaerde
        2. LUCENE-5474.patch
          4 kB
          Rob Audenaerde
        3. FacetOnlyExample.java
          6 kB
          Rob Audenaerde

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: