When using ElasticSearch, the FacetLabelTruncationLength system preference doesn't apply. I don't know if it's a bug or by design. Maybe it should be indicated in the syspref description that it only works with Zebra? To test: 1) Change the searchengine syspref to Zebra 2) Reindex 3) Do a search 4) Check the facets --> The longer ones should be truncated to 20 characters 5) Change the seachengin syspref to Elasticsearch 6) Redo steps 2-4 --> The longer facets are displayed in full
Created attachment 137885 [details] Screenshot of facets with Zebra This is a screenshot of facets with Zebra. Note that the longer ones are truncated with an ellipsis, e.g. "Association for Scot..."
Created attachment 137886 [details] Screenshot of facets with Elasticsearch This is a screenshot of facets with Elasticsearch. Note that the longer ones are there in full, e.g. "Association for Scottish Literary Studies"
In my test, I did not change the FacetLabelTruncationLength system preference when I changed search engines. I also did not specify staff interface or OPAC, but it does the same thing in both interfaces.
Created attachment 137887 [details] [review] Bug 31191: Specify FacetLabelTruncationLength is only for Zebra This patch adds a note in the description of FacetLabelTruncationLength that it only works with Zebra. To test: 0) Apply patch 1) Go to Administration > Global system preference > Searching preferences 2) Search for FacetLabelTruncationLength 3) Read the description, make sure it indicates that is requires Zebra
I changed the .pref file, I'm not sure if that's where it's changed or if it's the only place... Let me know.
Created attachment 138066 [details] [review] Bug 31191: Specify FacetLabelTruncationLength is only for Zebra This patch adds a note in the description of FacetLabelTruncationLength that it only works with Zebra. To test: 0) Apply patch 1) Go to Administration > Global system preference > Searching preferences 2) Search for FacetLabelTruncationLength 3) Read the description, make sure it indicates that is requires Zebra Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
String patch - passing QA too.
Pushed to master for 22.11. Nice work everyone, thanks!
Enhancement will not be backported to 22.05.x series.
I merged the docs update.. thanks Caroline