[SERVER-21347] The negated term hypen is to liberal in its matching Created: 08/Nov/15  Updated: 08/Nov/15  Resolved: 08/Nov/15

Status: Closed
Project: Core Server
Component/s: Text Search
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Sean Bannister [X] Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-20792 Hyphen in text search doesn't behave ... Closed
Participants:

 Description   

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.



 Comments   
Comment by Kamran K. [ 08/Nov/15 ]

Thanks for the clear bug report. This text-search issue is being tracked in SERVER-20792, which you can follow/watch for future updates.

Generated at Thu Feb 08 03:57:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.