Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.9, 5.0
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      Looking at http://www.lucidimagination.com/search/document/c2c6f660ddde4f7f/dismaxqparserplugin_and_tokenization ,
      I saw a user building DisjunctionMaxQuery / BooleanQuery with SpanTermQuerys.

      I wonder if users know that doing this is much slower than just using TermQuery?
      I agree it makes little sense to use SpanTermQuery if you arent going to use it inside a SpanNear etc,
      but on the other hand, I think its a little non-intuitive that it wouldnt be just as fast in a case like this.

      I could see this complicating queryparsing etc for users that want to sometimes use positions etc.

      SpanTermQuery is the same as TermQuery, except tf is computed as (#of spans * sloppyFreq(spanLength)
      For this case, #ofspans = tf and spanLength for a single term is always 1.

      Maybe we should optimize SpanTermQuery to return TermScorer, with just this special tf computation.
      This would avoid reading positions for anyone that does this.

        Activity

        Uwe Schindler made changes -
        Fix Version/s 4.9 [ 12326730 ]
        Fix Version/s 5.0 [ 12321663 ]
        Fix Version/s 4.8 [ 12326269 ]
        David Smiley made changes -
        Fix Version/s 4.8 [ 12326269 ]
        Fix Version/s 4.7 [ 12325572 ]
        Simon Willnauer made changes -
        Fix Version/s 4.7 [ 12325572 ]
        Fix Version/s 4.6 [ 12324999 ]
        Adrien Grand made changes -
        Fix Version/s 4.6 [ 12324999 ]
        Fix Version/s 5.0 [ 12321663 ]
        Fix Version/s 4.5 [ 12324742 ]
        Steve Rowe made changes -
        Fix Version/s 5.0 [ 12321663 ]
        Fix Version/s 4.5 [ 12324742 ]
        Fix Version/s 4.4 [ 12324323 ]
        Uwe Schindler made changes -
        Fix Version/s 4.4 [ 12324323 ]
        Fix Version/s 4.3 [ 12324143 ]
        Robert Muir made changes -
        Fix Version/s 4.3 [ 12324143 ]
        Fix Version/s 5.0 [ 12321663 ]
        Fix Version/s 4.2 [ 12323899 ]
        Mark Miller made changes -
        Fix Version/s 4.2 [ 12323899 ]
        Fix Version/s 4.1 [ 12321140 ]
        Mark Miller made changes -
        Fix Version/s 5.0 [ 12321663 ]
        Robert Muir made changes -
        Fix Version/s 4.1 [ 12321140 ]
        Fix Version/s 4.0 [ 12314025 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12563901 ] jira [ 12585402 ]
        Mark Thomas made changes -
        Workflow jira [ 12527833 ] Default workflow, editable Closed status [ 12563901 ]
        Robert Muir made changes -
        Fix Version/s 3.1 [ 12314822 ]
        Robert Muir made changes -
        Field Original Value New Value
        Attachment LUCENE-2780.patch [ 12460474 ]
        Robert Muir created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development