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

Field-Specific Search #223

Open
8ullyMaguire opened this issue Mar 18, 2024 · 1 comment
Open

Field-Specific Search #223

8ullyMaguire opened this issue Mar 18, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@8ullyMaguire
Copy link

8ullyMaguire commented Mar 18, 2024

Implement the ability to search within specific fields like title, description, tags, source, resolution, etc. This would enable users to narrow down their searches to specific metadata fields, resulting in more relevant and accurate results.

Related

@mgdigital
Copy link
Collaborator

Tags and resolution are filterable. This is separate from the search query string. I don't know that it needs additional support within the query string (or that it doesn't).

I'm not opposed to field specific search, but there are a few trade-offs here, a) a more complex implementation vs the current search which uses a single weighted tsvector and simple-to-implement query string rank, b) larger index sizes that would be required and c) (probably) reduced performance, d) likely more complex search string syntax needed to support this: field-specific queries may be best done using the filters element of the API, where the filter value is an enumeration (e.g. resolution and tag).

I'll leave this open for now, it's worth further consideration but will probably be prioritised after some other "missing" features are implemented as the current search is fairly complete relative to other features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants