Reinterpret a broken query as straight string query.#1699
Open
jannistsiroyannis wants to merge 1 commit intodevelopfrom
Open
Reinterpret a broken query as straight string query.#1699jannistsiroyannis wants to merge 1 commit intodevelopfrom
jannistsiroyannis wants to merge 1 commit intodevelopfrom
Conversation
Contributor
|
Haven't really thought it through but I think a simple solution could be something like: here: |
Contributor
Author
|
Sure! But it would have essentially the same effect, no? Including the sru/xsearch drawback. We could of course be passing an additional parameter "strictQuery" true/false or something, to compensate for it. But that would also be equally true for both solutions. |
Contributor
Same effect, yes! If we want better accuracy (interpreting only the broken part as free text) we’ll need something else. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the second variant of turning a bad query into just a string query.
This one essentially turns:
bad:query) NOT < 12into
bad query 12A (severe) drawback of this (needing to be done at the language level) is that it affects all querys. For example a broken sru-query will also resort to this, and the
( sru-stuff ) and type:instancebreaks down to
sru-stuff type instancewhich is gonna look pretty broken.
The ultimately best and correct version would be for the frontend (which also does parsing) to do the exact equivalent of what this PR does instead. Since it is really only human-entered (frontend) querys we want to treat this loosely.
This PR is mutually exclusive with #1697