In my web app, I want to allow my user to search for specific articles.
I need to support the following operators:
AND
OR
NOT
( )
" "
A search query could be something like:
aaa AND bbb AND (ccc or ddd) NOT "eee fff"
If possible, wildcards like *
and ?
should be supported too.
If possible, I would love to end up with a Linq expression, that will allow me to query EF, ElasticLINQ or Linq2SQL.
Do you know of any projects that allow me to accomplish this in a somewhat easy way?
I have been looking at Irony and Antlr, but they seem like overkill for this.
Any ideas?
EDIT:
If you have any suggestions as to how I could program this myself, I would be very interested too. But someone must have been in this position before.