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.
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