Skip to content
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

Searching the Database: Document attributes/fields which are searched #11467

Open
jkirk opened this issue Nov 13, 2024 · 0 comments
Open

Searching the Database: Document attributes/fields which are searched #11467

jkirk opened this issue Nov 13, 2024 · 0 comments
Assignees
Milestone

Comments

@jkirk
Copy link

jkirk commented Nov 13, 2024

Overview

Neither the documentation nor the Search Help indicates which attributes/fields are searched when no modifiers or fields are specified.

Steps to Reproduce

Read the documentation:

== Searching the Database
KeePassXC provides an enhanced and granular search features the enables you to search for specific entries in the databases using the different modifiers, wild card characters, and logical operators.
=== Modifiers and Fields
[grid=rows, frame=none, width=70%]
|===
|Modifier |Description
|- |Exclude this term from results
|! |Exclude this term from results
|+ |Match this term exactly
|* |Term is handled as a regular expression
|===
The following fields can be searched along with their abbreviated name in parentheses:
* Title (t)
* Username (u)
* Password (p, pw)
* URL
* Notes (n)
* Attribute names and values (attr)
* Attachment (attach)
* Group (g)
* Entry State (is:expired, is:weak)
=== Wild Card Characters and Logical Operators
[grid=rows, frame=none, width=70%]
|===
|Wild Card Character |Description
|* |Match anything
|? |Match one character
|\| |Logical OR
|===
=== Sample Search Queries
The following tables lists a few samples search queries for your reference:
|===
|Query |Description
|`user:johnsmith url:www.google.com`
|Searches the Username field for johnsmith and the URL field for www.google.com.
|`user:john\|smith`
|Searches the Username field for john OR smith.
|`+user:johnsmith -url:www.google.com *notes:"secret note \d"`
|Search the username field for exactly johnsmith, the URL must not contain www.google.com, and notes contains secret note [digit].
|`+attr:mystring123`
|Searches all additional attributes for any name OR value equal to mystring123.
|`is:expired is:weak`
|Searches for all expired entries with weak passwords.
|===
== Advanced Entry Options

Expected Behavior

Tell the user which attributes/fields are searched by default.

Actual Behavior

Tell the user needs to guess attributes/fields are searched by default.

Context

Also #7967 mentions that it is not obvious which fields are used to search the content:

Currently, typing text to search will look through some subset of fields (not sure what they are exactly; [...]

KeePassXC - Version 2.7.4
Revision: 63b2394

Operating System: Linux
Desktop Env: Cinnamon
Windowing System: X11

@jkirk jkirk added the bug label Nov 13, 2024
@droidmonkey droidmonkey self-assigned this Nov 13, 2024
@droidmonkey droidmonkey added this to the v2.7.10 milestone Nov 13, 2024
@github-project-automation github-project-automation bot moved this to To triage in WIP Tracker Nov 13, 2024
@droidmonkey droidmonkey moved this from To triage to In progress in WIP Tracker Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In progress
Development

No branches or pull requests

2 participants