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

SOLR ignores 'NOT' clause in query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Not A Problem
    • 3.5
    • None
    • search
    • Windows, Java 7

    Description

      We have a simple domain where

      FirstName_s:"Bob"
      returns 40 documents, and

      -Department_t:"Ninjas"
      returns all of the documents (we don't have a ninja department).

      We expected the query

      (FirstName_s:"Bob") OR (-Department_t:"Ninjas")
      to return all documents, however it only returned the original 40 documents.

      We have experimented with a couple of different orderings, tried using 'NOT' instead of '-' all to no avail.

      Is this expected behavior? Perhaps more importantly, how do we get the behavior we expect?

      Attachments

        Activity

          People

            Unassigned Unassigned
            tsmarsh Tom Marsh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: