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

The negated term hypen is to liberal in its matching

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Text Search
    • Labels:

      Currently the following two full text searches are treated the same:
      term1 -terms2
      term1 - terms2

      Note the space after the hyphen. I'm unsure if this is a bug or by design.

      If we look at the industry standard across search engines negated terms generally require the hyphen to be against the term that will be negated, as shown in my first example. This is because users sometimes search queries that contain " - " such as when they copy and paste a song name like:
      Michael Jackson - Billie Jean

      Users expect "Michael Jackson - Billie Jean" to return the correct results however currently it doesn't.

            Unassigned Unassigned
            SeanBannister Sean Bannister [X]
            0 Vote for this issue
            4 Start watching this issue