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

Extend ToParentBlockJoinQuery with 'minimum matched children' functionality

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Lucene Fields:
      New

      Description

      I have a hierarchal data in index and requirements like 'match parent only if at least n his children were matched'.  

      I used to solve it by combination of some lucene / solr tricks like 'frange' filtration by sum of matched children score, so it's doable out of the box with some efforts right now. But also it could be solved by ToParentBlockJoinQuery extension with new numeric parameter, tried to do it in attached patch. 

      Not sure if this should be in main branch, just put it here, maybe someone would have similar problems.

        Attachments

        1. LUCENE-8359
          38 kB
          Andrey Kudryavtsev

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              werder Andrey Kudryavtsev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: