-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/add ui for query parsing #6805
Feature/add ui for query parsing #6805
Conversation
Mhhh, do you think the toggle is really necessary? I would try to have the UI as minimal as possible. Are there negative side effects to always parse the query using lucene? If I've understood your other PR correctly, input like "Some long text: subtitle" is still parsed as one default field string, right? |
In the case of an unknown field, currently, the fielded term will be ignored. But this is the implemented behaviour and is independent of lucene and therefore can be adapted. |
This refs JabRef#341. |
ebceab8
to
e3075dc
Compare
I would really like to see the web search behaving similar to the JabRef search: https://docs.jabref.org/finding-sorting-and-cleaning-entries/search#search-modes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Thanks! However, found one little issue.
Greetings from JabCon2020
Matcher queryValidation = queryPattern.matcher(queryString.strip()); | ||
if (queryValidation.matches()) { | ||
if (containsYearAndYearRange(queryString)) { | ||
querySource.setStyle("-fx-background-color: rgba(240, 128, 128, 0.5);"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pseudo-classes could be used instead of hardcoding the colors here. See gui/util/ViewModelListCellFactory
Make QueryParser handle query parsing issues more robust Make default implementation of performComplexSearch include all fields Signed-off-by: Dominik Voigt <[email protected]>
be03839
to
ebcb7dc
Compare
Signed-off-by: Dominik Voigt <[email protected]>
This PR is a follow-up of #6799 and adds the related changes to the UI code.
The search bar will be highlighted green if the supported syntax is used, and red otherwise.
Using supported syntax:
Missing quotation mark:
Using unsupported field: