Uploaded image for project: 'Providence'
  1. PROV-1925

Boolean queries involving NOT return incorrect results (ElasticSearch; SqlSearch)

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 1.6.3, 1.7
    • Fix versions: None
    • Components: search
    • Labels:
      None

      Description

      Looks like NOT queries are also always handled correctly, even basic ones. Extreme example: the query string
      smith NOT smith
      gets sent to ES as
      "(+(smith) (smith)) AND (ca_objects\\/deleted:0)"
      and returns all the objects related to smith, instead of none at all.
      Unfortunately the quick fix of inserting the "-" in the appropiate line is not enough, there are compounding rewrite issues.

      In fact even SqlSearch is not immune, for example searches like smith OR NOT xxx fail to rewrite and all return null in all cases.

        Attachments

          Activity

            People

            • Assignee:
              Former user (Inactive)
              Reporter:
              yelto
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: