Lucene - Core
  1. Lucene - Core
  2. LUCENE-2861

Search doesn't return document via query

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.9.1, 2.9.4, 3.0.3
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      None
    • Environment:

      Doesn't depend on enviroment

    • Lucene Fields:
      New

      Description

      The query doesn't return document that contain all words from query in correct order.

      The issue might be within mechanism how do SpanQuerys actually match results (http://www.lucidimagination.com/blog/2009/07/18/the-spanquery/)

      Please refer for details below. The example text wasn't passed through snowball analyzer, however the issue exists after analyzing too

      Query:
      (intend within 3 of message) within 5 of message within 3 of addressed.

      Text within document:
      The contents of this e-mail message and
      any attachments are intended solely for the
      addressee(s) and may contain confidential
      and/or legally privileged information. If you
      are not the intended recipient of this message
      or if this message has been addressed to you
      in error, please immediately alert the sender
      by reply e-mail and then delete this message
      and any attachments

      Result query:

      SpanNearQuery spanNear = new SpanNearQuery(new SpanQuery[]

      { new SpanTermQuery(new Term(BODY, "intended")), new SpanTermQuery(new Term(BODY, "message"))}

      ,
      4,
      false);
      SpanNearQuery spanNear2 = new SpanNearQuery(new SpanQuery[]

      {spanNear, new SpanTermQuery(new Term(BODY, "message"))}

      , 5, false);
      SpanNearQuery spanNear3 = new SpanNearQuery(new SpanQuery[]

      {spanNear2, new SpanTermQuery(new Term(BODY, "addressed"))}

      , 3, false);

        Activity

        Zenoviy Veres created issue -
        Mark Thomas made changes -
        Field Original Value New Value
        Workflow jira [ 12542255 ] Default workflow, editable Closed status [ 12563876 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12563876 ] jira [ 12584497 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Zenoviy Veres
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development