Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20792

Hyphen in text search doesn't behave correctly based on usual implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.2
    • Component/s: Querying, Text Search
    • Labels:
      None
    • Backwards Compatibility:
      Major Change
    • Operating System:
      ALL
    • Sprint:
      Query 10 (02/22/16)

      Description

      It is common, that hyphen negates the following word in text search.

      But it is standard that the hyphen must be directly adjacent to the word. E.g "MongoDB -documentation". See Google.

      Contrary, MongoDB's implementation negates the word even if the hyphen is NOT adjacent "MongoDB - documentation". See Google again.

      This is very poor in common user scenarios. People use copy paste frequently, when searching for text and text frequently contains hyphens to separate words.

      "MongoDB - Wikipedia, the free encyclopedia" would not find this article on wikipedia, should Google use MongoDB.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              charlie.swanson Charlie Swanson
              Reporter:
              josef.sabl Josef Sábl
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: