Bug 1091

Summary: Do a second search with shorter terms if there are no results found
Product: Koha Reporter: Michael Hafen <michael.hafen>
Component: SearchingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P2 CC: asukoeh87, dcook, katrin.fischer
Version: Main   
Hardware: PC   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22605
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31213
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: proposed patches.

Description Chris Cormack 2010-05-20 23:38:46 UTC


---- Reported by mdhafen@tech.washk12.org 2006-05-31 06:59:14 ----

One of my librarians asked for this.

If the opac search finds no results I added code to shorten all the search terms to four letters and try again.

Maybe someone else would like this too.



---- Additional Comments From mdhafen@tech.washk12.org 2006-05-31 06:59:30 ----

Created an attachment
proposed patches.





---- Additional Comments From jmf@liblime.com 2007-10-04 14:05:25 ----

neat idea, the search has changed in 3.0, but I'm open to something like this, I'll assign it to myself. Those librarians always have the best ideas :-)



--- Bug imported by chris@bigballofwax.co.nz 2010-05-20 23:38 UTC  ---

This bug was previously known as _bug_ 1091 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=1091
Imported an attachment (id=67)

Actual time not defined. Setting to 0.0
The original submitter of attachment 67 [details] [review] is unknown.
   Reassigning to the person who moved it here: chris@bigballofwax.co.nz.

Comment 1 Katrin Fischer 2012-06-11 13:26:19 UTC
Attached patch is 'ancient' predates git and Zebra. I am marking it as obsolete, because a complete new implementation would be needed to add this feature to current Koha. Changing bug status back to new.
Comment 2 Katrin Fischer 2019-05-04 15:29:15 UTC
I wonder if this is still a desired feature. There are currently different approaches to help searches:
- Fuzzy 
- Stemming
- Auto truncation

Would shortening the terms (with auto-truncation) really work?
Comment 4 David Cook 2022-08-22 03:19:55 UTC
This is a very old enhancement request, and I can't see it working well in practice. 

Instead, I think an Edit Search like in Bug 22605 is a much more usable path forward.