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

join query scanning "toField" docValue

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.0
    • None
    • modules/join
    • None
    • New

    Description

      I want to contribute the subj which should do something like ..WHERE EXISTS (SELECT 1 FROM fromSearcher.search(fromQuery) WHERE fromField=toField). It turns out, that it can be returned by the current method createJoinQuery(...ScoreMode.None)

      • at first, it should run fromQuery first, collect fromField into BytesRefHash by TermsCollector, like it's done now
      • then it should return query with TwoPhase Scorer
      • which obtains toField docValue on matches() and check term for existence in BytesRefHash

      Do you think it's ever useful? if you do, I can bake a patch.
      Anyway, suggest the better API eg separate method, or enum and actual name!

      Attachments

        1. LUCENE-6332.patch
          11 kB
          Mikhail Khludnev

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkhl Mikhail Khludnev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: