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 https://github.com/koppor/jabref/issues/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
|
calixtus
left a comment
There was a problem hiding this comment.
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.
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 <dominik.ingo.voigt@gmail.com>
be03839 to
ebcb7dc
Compare
Signed-off-by: Dominik Voigt <dominik.ingo.voigt@gmail.com>
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:
