The QueryFuzzy syspref affects zebra in that a fuzziness value is passed to the query, however, it simply allows or disallows the use of the fuzzy search option To activate fuzziness on a term one must add '~' Should turning on fuzziness do this automatically?
I think it would be very helpful for staff and patrons as our patrons won't know to do it and might get frustrated.
If we make the syspref force all terms to be fuzzy when on, can we make it so that when the syspref is off the ~ still works to fuzzy an individual term? I agree that it's unreasonable to expect patrons to remember to use a fancy search trick like that, but I think the flexibility is good for staff users.
(In reply to Andrew Fuerste-Henry from comment #2) > If we make the syspref force all terms to be fuzzy when on, can we make it > so that when the syspref is off the ~ still works to fuzzy an individual > term? I agree that it's unreasonable to expect patrons to remember to use a > fancy search trick like that, but I think the flexibility is good for staff > users. Agreed, the flexibility is nice for staff but our patrons have been somewhat frustrated, espcially with titles that have apostrophes. (In reply to Nick Clemens from comment #0) > The QueryFuzzy syspref affects zebra in that a fuzziness value is passed to > the query, however, it simply allows or disallows the use of the fuzzy > search option > > To activate fuzziness on a term one must add '~' > > Should turning on fuzziness do this automatically? We have QueryFuzzy turned on and ~ does not seem to work to make a term fuzzy. If it just did it automatically I think that would be better for our patrons.
I was doing it before a term rather than after, that is why it didn't work: Jaspers day - no results Jasper's Day - 4 results Jaspers~ day - 172 results. (title that matches at the top.)
Created attachment 112393 [details] [review] Attachment to Bug 24863 - QueryFuzzy syspref says it requires Zebra but Elasticsearch has some support Bug 24863: QueryFuzzy syspref says it requires Zebra but ElasticSearch has some support. This patch updates the description of the QueryFuzzy system preference to make it more clear how it works with Zebra and how Elasticsearch has some amount of fuzzy available for searches. To test: 1. Go to administration 2. Search for QueryFuzzy 3. Observe the current description, which only includes Zebra. 4. Apply patch 5. Repeat steps 1-2 6. Observe the updated description. 7. Sign off
Created attachment 112951 [details] [review] Bug 24863: QueryFuzzy syspref says it requires Zebra but ElasticSearch has some support. This patch updates the description of the QueryFuzzy system preference to make it more clear how it works with Zebra and how Elasticsearch has some amount of fuzzy available for searches. To test: 1. Go to administration 2. Search for QueryFuzzy 3. Observe the current description, which only includes Zebra. 4. Apply patch 5. Repeat steps 1-2 6. Observe the updated description. 7. Sign off Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Created attachment 112970 [details] [review] Bug 24863: QueryFuzzy syspref says it requires Zebra but ElasticSearch has some support. This patch updates the description of the QueryFuzzy system preference to make it more clear how it works with Zebra and how Elasticsearch has some amount of fuzzy available for searches. To test: 1. Go to administration 2. Search for QueryFuzzy 3. Observe the current description, which only includes Zebra. 4. Apply patch 5. Repeat steps 1-2 6. Observe the updated description. 7. Sign off Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Created attachment 114722 [details] [review] Bug 24863: QueryFuzzy syspref says it requires Zebra but ElasticSearch has some support. This patch updates the description of the QueryFuzzy system preference to make it more clear how it works with Zebra and how Elasticsearch has some amount of fuzzy available for searches. To test: 1. Go to administration 2. Search for QueryFuzzy 3. Observe the current description, which only includes Zebra. 4. Apply patch 5. Repeat steps 1-2 6. Observe the updated description. 7. Sign off Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Created attachment 114723 [details] [review] Bug 24863: QueryFuzzy syspref says it requires Zebra but ElasticSearch has some support. This patch updates the description of the QueryFuzzy system preference to make it more clear how it works with Zebra and how Elasticsearch has some amount of fuzzy available for searches. To test: 1. Go to administration 2. Search for QueryFuzzy 3. Observe the current description, which only includes Zebra. 4. Apply patch 5. Repeat steps 1-2 6. Observe the updated description. 7. Sign off Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Thanks Fridolin for the proof reading :)
Pushed to master for 21.05, thanks to everybody involved!
Trivial enhancement, I choose to backport. Pushed to 20.11.x for 20.11.02
Pushed to 20.05.x for 20.05.08
Backported: Pushed to 19.11.x branch for 19.11.15