prior-art-archive / priorartarchive.org

Prior Art Archive Site
https://priorartarchive.org
GNU General Public License v2.0
3 stars 1 forks source link

Rewrite query parser in JavaScript #55

Open reefdog opened 4 years ago

reefdog commented 4 years ago

This is a Very Large Task that's not on our immediate tasklist, but which task I'm creating so we can reference it from other issues/conversations, and so we have a place to start adding requirements/specs.

The existing query parser (which parses search input into ElasticSearch-compatible tokens) is written in Java and treated as an external service to the project. We'd like to rewrite this in JavaScript as an internal component.

slifty commented 4 years ago

It has become clear that this task needs to be taken on, since integration with the Java / Docker queryparser is blocking and there is no clear end in sight.

My first step here is going to be to inspect the Java and use that to try to create a documented skeleton of a new, JS based queryparser.

slifty commented 4 years ago

Some other resources (h/t @joeltg)

This may be a useful utility: https://nearley.js.org/