Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8958

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

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              1 year, 16 weeks, 4 days ago