Only exclude words from search if they start with a "-" (i.e. it occurs after a space character)
-
Current search behaviour:
Query Interpretation flowing
Everything that includes flowing
fast -flowing
Everything that includes fast
but excludesflowing
-flowing fast
Everything that includes fast
but excludesflowing
fast-flowing
Everything that includes fast
but excludesflowing
"fast-flowing"
Everything that includes fast-flowing
Proposed search behaviour:
Query Interpretation flowing
Everything that includes flowing
fast -flowing
Everything that includes fast
but excludesflowing
-flowing fast
Everything that includes fast
but excludesflowing
fast-flowing
Everything that includes fast-flowing
"fast-flowing"
Everything that includes fast-flowing
In 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 flowing
Everything that includes flowing
Everything that includes flowing
fast -flowing
Everything that includes fast
but excludesflowing
Everything that includes fast
but excludesflowing
-flowing fast
Everything that includes fast
but excludesflowing
Everything that includes fast
but excludesflowing
fast-flowing
Everything that includes fast
but excludesflowing
Everything that includes fast-flowing
"fast-flowing"
Everything that includes fast-flowing
Everything that includes fast-flowing