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

join query scanning "toField" docValue

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: modules/join
    • Labels:
      None
    • Lucene Fields:
      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

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

                Dates

                • Created:
                  Updated: