Only exclude words from search if they start with a "-" (i.e. it occurs after a space character)
-
Current search behaviour:
Query Interpretation flowingEverything that includes flowingfast -flowingEverything that includes fastbut excludesflowing-flowing fastEverything that includes fastbut excludesflowingfast-flowingEverything that includes fastbut excludesflowing"fast-flowing"Everything that includes fast-flowingProposed search behaviour:
Query Interpretation flowingEverything that includes flowingfast -flowingEverything that includes fastbut excludesflowing-flowing fastEverything that includes fastbut excludesflowingfast-flowingEverything that includes fast-flowing"fast-flowing"Everything that includes fast-flowingIn other words, only treat
-as a beginning of a sequence to be excluded if it occurs after a space or at the beginning of a search string. I believe this is a more intuitive and less surprising behaviour. -
Idk why I haven't made it a single table and I can't edit the post anymore, so here it is in an easier to understand way:
Query Current interpretation Proposed interpretation flowingEverything that includes flowingEverything that includes flowingfast -flowingEverything that includes fastbut excludesflowingEverything that includes fastbut excludesflowing-flowing fastEverything that includes fastbut excludesflowingEverything that includes fastbut excludesflowingfast-flowingEverything that includes fastbut excludesflowingEverything that includes fast-flowing"fast-flowing"Everything that includes fast-flowingEverything that includes fast-flowing