Boolean operator AND shows up as highlighted term
We're using 3.10.05 When using the advanced search option (in both OPAC and staff interface) if you enter more than one search term in the Search for box (author, title, etc.) Koha highlights 'and' in the search results, and even truncated versions such as England. Being the catalogue for the English Folk Dance and Song Society, we have an awful lot of biblios with England in them. Here's an example: http://catalogue.efdss.org/cgi-bin/koha/opac-search.pl?idx=ti&q=morris+dance&op=and&idx=au%2Cwrdl&q=Sharp&op=and&idx=kw&do=Search&sort_by=relevance At first glance, I was worried it was actually searching on 'and' but have tested it with a few biblios that don't have and in any form in them (not easy to find!). It only looks as if it's searching on 'and'. Obviously we've got the highlighting switched on, because it's useful, most of the time. Other settings: QueryAutoTruncate is set to "only if * is added" QueryFuzzy is set to "Don't try" to match words of the same base in a search. Are there other settings I should look at? Should I file a bug? -- Elaine Bradtke Data Wrangler VWML English Folk Dance and Song Society | http://www.efdss.org Cecil Sharp House, 2 Regent's Park Road, London NW1 7AY Tel +44 (0) 20 7485 2206 (This number is for the English Folk Dance and Song Society in London, England. If you wish to phone me personally, send an e-mail first. I work off site) -------------------------------------------------------------------------- Registered Company No. 297142 Charity Registered in England and Wales No. 305999 --------------------------------------------------------------------------- "Writing about music is like dancing about architecture" --Elvis Costello (Musician magazine No. 60 (October 1983), p. 52)
Op 10/07/13 17:59, Elaine Bradtke schreef:
At first glance, I was worried it was actually searching on 'and' but have tested it with a few biblios that don't have and in any form in them (not easy to find!). It only looks as if it's searching on 'and'.
Basically the highlighting code is pretty simple and just searches through the results looking for strings that match what you have as search terms. It's not actually a reflection on what was actually searched, just a visual cue for people looking at the results. If you have a concrete idea for how it might be improved (keeping in mind that things like 'and' aren't always a boolean term), feel free to file a bug. But beware that going beyond much that's trivial will probably be more complex than it's worth. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
participants (2)
-
Elaine Bradtke -
Robin Sheat