zgornel / Garamond.jl

A small, flexible neural and data search engine, written in Julia. Batteries not included.
MIT License
14 stars 1 forks source link

Extend base input parser #3

Open zgornel opened 5 years ago

zgornel commented 5 years ago

A query language should be defined and developed. Should word at query term level, with boolean operators. Main operations should implement logical AND, OR (at this point implicitandNOT` (i.e. negation)

jpsamaroo commented 3 years ago

These should also work across multiple input parsers. For example, I might want to search for "coupon" with the base text parser, AND'd with a search for results within a given geographic area (using a latitude+longitude+radius parser), to determine which local businesses have coupons available in my city.

zgornel commented 3 years ago

Indeed. The base input parser shoul dbe viewd as a "last-stage parser" that parses the query into a query data structure that is sent to the search methods. I'm envisioning a stacked parser approach here where parsers call the base one as one can build easily complex selection from the db. So a flow would be "natural query --> (NLP parser) --> select-like query --> (Base input parser)"