Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2209

Syntax parsing bug..Parentheses around field and term produce different results

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: 4.0-BETA
    • Component/s: search
    • Labels:
      None

      Description

      Schema:
      <field name="id" type="sint" indexed="true" stored="true" required="true" />
      <field name="account_id" type="sint" indexed="true" stored="true" required="true" />
      <field name="user_id" type="sint" indexed="true" stored="true" required="false" />

      Indexed documents:
      id: 1, UserId: 0, AccountId: 1
      id: 2, UserId: 0, AccountId: 1
      id: 3, UserId: 1, AccountId: 1
      id: 4, UserId: 2, AccountId: 1
      id: 5, UserId: 3, AccountId: 1

      Query:
      account_id: 1 AND -user_id: 0

      Results:
      Document Ids: 3, 4, 5

      Query:
      account_id: 1 AND ( -user_id: 0 )

      Results:
      --No matched documents –

      Is this the intended behavior? I seem to recall these types of queries working in 1.4.0, but I could be wrong.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              crim Stephen

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment