vespa icon indicating copy to clipboard operation
vespa copied to clipboard

Add onear grammar value to userInput()

Open dkurzaj opened this issue 6 years ago • 1 comments

We could add the onear value to the possible parsing grammars of userInput().

This would allow to parse the user input as a query such that the terms are combined by the onear() operator.

dkurzaj avatar Oct 12 '18 13:10 dkurzaj

Hello, I am looking into this issue and have a question: to support "onear" annotation, I think we need to extend the definition of UserInput such that it also accepts the "distance" param, in addition to the "grammar" param. My first guess is this change has to happen in ANTLR grammar for UserInput definition. However, I am not finding the definition of UserInput in any of the grammar files. am I missing something here? if the DSL grammar definition of UserInput is not in ANTLR, is it parsed in code?

rharige avatar Mar 25 '21 16:03 rharige