for example i'd need to create something like google search query parser to parse such expressions as:
flying hiking or swiming -"**walking in boots **" **author:**hamish **author:**reid
or
house in new york priced over $500000 with a swimming pool
how would i even go about start building something like it? any good resources?
c# relevant, please (if possible)
How many keywords do you have (like 'or', 'in', 'priced over', 'with a')? If you only have a couple of them I'd suggest going with simple string processing (regexes) too.
But if you have more than that you might want to look into implementing a real parser for those search expressions. Irony.net might help you with that (I found it extremely easy to use as you can express your grammar in a near bnf-form directly in code).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With