kreeben / resin

Vector space index based search engine that's available as a HTTP service or as an embedded library.
MIT License
568 stars 40 forks source link

Prohibit first statement in query from being a "not" #31

Closed alexanderpersson closed 6 years ago

alexanderpersson commented 7 years ago

Fix for issue: Prohibit first statement in query from being a "not" statement but allow all other query operators

https://github.com/kreeben/resin/issues/9

AlgorithmsAreCool commented 7 years ago

Negative queries are a very common use case. I'm curious why this was disallowed. Does the query engine not support it right now?

kreeben commented 7 years ago

@AlgorithmsAreCool Negative queries are allowed but not if it is the only statement in the query, because there is no support for "give me all data except where myfield=somevalue". But maybe there should be?

kreeben commented 6 years ago

N/A because of this commit: https://github.com/kreeben/resin/commit/5f85425a0f61bbfbe2b2676d71d72f37677a0bef