Uploaded image for project: 'Lucy'
  1. Lucy
  2. LUCY-140

Space-padded +/- has semantic impact in QueryParser

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0 (incubating)
    • Component/s: Search
    • Labels:
      None

      Description

      In Lucy's QueryParser syntax, plus and minus symbols, used to require or
      forbid terms/subqueries, should only apply if they are directly prepended.
      Right now, a bug in QueryParser.c causes them to apply when there is
      whitespace separation.

      These two query strings produce identical results, but should not:

          a - b
          a -b
      

        Attachments

        1. padded_plus_minus.patch
          3 kB
          Marvin Humphrey

          Activity

            People

            • Assignee:
              marvin Marvin Humphrey
              Reporter:
              marvin Marvin Humphrey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: