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

smartsearch 0 result #18

Open
nczirjak-acdh opened this issue Dec 5, 2024 · 1 comment
Open

smartsearch 0 result #18

nczirjak-acdh opened this issue Dec 5, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@nczirjak-acdh
Copy link

nczirjak-acdh commented Dec 5, 2024

I tried to search for 3d content like:

keyword: nxs
type: resource
accessreS: public

and it showed me 0 resources.

but if you use the autocomplete for the keyword search, then you can find nxs resources, like: https://arche.acdh.oeaw.ac.at/browser/metadata/221011

See also https://redmine.acdh.oeaw.ac.at/issues/24268

@zozlak zozlak added the enhancement New feature or request label Dec 9, 2024
@zozlak
Copy link
Member

zozlak commented Dec 9, 2024

Technically it's because the full text search matches only full segments and in the current config a dot is not treated as a segment separator...

Autocomplete uses a slightly more elaborate matching procedure: first try the FTS index, when there's not enough results, then also ILIKE with search phrase as a prefix, if not enough results, then also ILIKE with a search phrase as a suffix, if not enough, then also ILIKE with containing a search phrase.

I need either to tune the segments splitting rules or to implement the autocomplete-like procedure.

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