| Summary: | Make build_authorities_query takes QueryAutoTruncate system preference into account | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Alex Arnaud <alex.arnaud> |
| Component: | Searching - Elasticsearch | Assignee: | Alex Arnaud <alex.arnaud> |
| Status: | Failed QA --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | fridolin.somers, magnus |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
| Attachments: | Bug 30817: make build_authorities_query takes QueryAutoTruncate system preference into account | ||
Created attachment 135231 [details] [review] Bug 30817: make build_authorities_query takes QueryAutoTruncate system preference into account Sounds logical to me. Maybe create new options for the system preference : none, biblios, authorities, both. (In reply to Fridolin Somers from comment #2) > Sounds logical to me. > Maybe create new options for the system preference : > none, biblios, authorities, both. I agree with Fridolin. You might want to have different auto truncate for biblios and auth search. So either - more choices, as Fridolin says, or - a whole new syspref, something like QueryAutoTruncateAuth |
Currently authorities search (contains) queries are always truncated using SearchEngine::Elasticsearch::QueryBuilder::_truncate_terms. Truncating queries could have some negative effects on search results (i.e relevance). An interesting test plan could be: - Enable Elasticsearch search engine, - make sure you have some authorities with the following heading-main content: "jean-Charles", "Jean", "Charles", "Jean Foo", "Foo Jean", "Jean Charles" - launch the following search: Main heading contains "jean-Charles" sort by "none" - Authority with heading-main "jean-Charles" should have the highest relevance score. But this is not the case. The score seems to be altered by the wildcard. Patch is coming.