Support for user provided boolean expressions/UI

Hi there,

I'm trying to add support in my application for boolean expressions from the user. I'd like to allow the user to enter multiple keywords such as "Real Estate AND Agent" or a phrase such as "Tech News OR Technology News OR Tech blog OR Tech journalist" or a query like "dental supplies NOT wholesaler".

However, I'll need to receive the input through the search UI, parse for any boolean commands in the string (I'm using Python), and then convert the expression given into a boolean query for ElasticSearch with multiple elements.

Is there a "best practice" for this approach? Or any recommendations? thanks,

Any ideas would be greatly appreciated :smiley: thanks everyone

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.