Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: modules/facet
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      Mike experimented with encoding just the exact categories ordinals on LUCENE-4602, and I added OrdinalPolicy.NO_PARENTS, with a comment saying that this requires a special FacetsAccumulator.

      The idea is to write the exact categories only for each document, and then at search time count up the parents chain to compute requested facets (I say count, but it can be any weight).

      One limitation of such accumulator is that it cannot be used when e.g. a document is associated with two categories who share the same parent, because that may result in incorrect weights computed (e.g. a document might have several Authors, and so counting the Author facet may yield wrong counts). So it can be used only when the app knows it doesn't add such facets, or that it always asks to aggregate a 'root' that in its path this criteria doesn't hold (no categories share the same parent).

        Activity

        Shai Erera created issue -
        Shai Erera made changes -
        Field Original Value New Value
        Attachment LUCENE-4610.patch [ 12560530 ]
        Shai Erera made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Lucene Fields New [ 10121 ] New,Patch Available [ 10121, 10120 ]
        Resolution Implemented [ 10 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Shai Erera
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development