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

Space-padded +/- has semantic impact in QueryParser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.1.0 (incubating)
    • Search
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: