Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10562

Search interprets hyphen as minus sign and excludes search term

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 3.0.12-RC3
    • 3.0.9
    • Search
    • None
    • PHP 5.2.9, MySQL 5.0.67, IE9, Firefox 8.0

      The hyphen is a problem with the Search feature.
      If I search the following keywords:
      +hide +e-mail
      the search engine interprets it as
      +hide +e -mail (20976 results)
      as if I had told it to exclude 'mail' from the search.
      You can verify this by searching
      +hide -mail +e
      and you get the same results set. (20976 results)
      Since the search feature ignores the 'e', the original search
      +hide +e-mail
      effectively becomes
      +hide -mail (20976 results)
      The user has to know to use quotation marks to prevent this
      +hide +"e-mail"
      which is not in the instructions.

            dhruv.goel92 Dhruv Goel [X] (Inactive)
            CarolC1 CarolC1
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: