Skip to content

Do not highlight Boolean operators in search results #11595

@ryan-carpenter

Description

@ryan-carpenter

Terms entered in the search bar are highlighted in the entry editor, which is helpful for reviewing the results. Boolean operators are also highlighted as if they were matching keywords. This adds noise the results and can make it unclear that the operator was recognized as such (and not as a keyword). This is most confusing when the operator is the only highlighted word in the current view, which looks as if the match is a false positive (even though it is not).

Example search

title="effects" and title="drill"

Results include
image

Only the target keywords should be highlighted in the results, not the Boolean operators and, or and not (and not). In this example "effects" and "drill" should be highlighted.

JabRef 5.15--2024-07-10--1eb3493
Linux 6.9.9-1-default amd64
Java 21.0.2
JavaFX 22.0.1+7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions