Lucene - Core
  1. Lucene - Core
  2. LUCENE-2590

Enable access to the freq information in a Query's sub-scorers

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      The ability to gather more details than just the score, of how a given
      doc matches the current query, has come up a number of times on the
      user's lists. (most recently in the thread "Query Match Count" by
      Ryan McV on java-user).

      EG if you have a simple TermQuery "foo", on each hit you'd like to
      know how many times "foo" occurred in that doc; or a BooleanQuery +foo
      +bar, being able to separately see the freq of foo and bar for the
      current hit.

      Lucene doesn't make this possible today, which is a shame because
      Lucene in fact does compute exactly this information; it's just not
      accessible from the Collector.

      1. LUCENE-2590.patch
        16 kB
        Michael McCandless
      2. LUCENE-2590.patch
        19 kB
        Michael McCandless
      3. LUCENE-2590.patch
        30 kB
        Simon Willnauer
      4. LUCENE-2590.patch
        26 kB
        Simon Willnauer
      5. LUCENE-2590.patch
        32 kB
        Simon Willnauer
      6. LUCENE-2590.patch
        31 kB
        Simon Willnauer

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Simon Willnauer
              Reporter:
              Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development