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

Search syntax broken when using Sphinx Fulltext backend

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.10-RC1, 3.3.1-RC1
    • 3.3, 3.2.2
    • Search
    • SphinxSearch 2.2.11

      Fix for https://tracker.phpbb.com/browse/PHPBB3-15367 used EscapeString function to escape special characters in search queries passed through to the Sphinx engine.

      This means that the following special characters used in phpBB search queries are fed through to Sphinx as literal characters, breaking their functionality. Currently, those search characters are simply ignored by the search, as are the words NOT and AND.

      As a result the following characters do not work as advertised on phpBB search when using Sphinx Fulltext as the search backend:

      +

      -

      "

      *

      Resolving this issue would require creating a custom function to escape only those characters which require escaping to avoid search errors, eg /, $.

      In fixing this issue, we will need to avoid a situation where users searching for hyphenated words will have the following word excluded from search results. Currently hyphens are simply ignored.

      Resolution of this issue should result in exact phrase searching being possible on phpBB, as described here: https://tracker.phpbb.com/browse/PHPBB3-16233

      Instruction text on search.php also needs updated to properly reflect actual search functionality, including possibility of exact phrases when using Sphinx or mySQL.

            Marc Marc
            KYPREO KYPREO [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: