Matches exactly search retrieval issue for 2.5.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
We’ve noticed what appears to be incorrect returns in a matches exactly title search in 2.5.1.
In the PINES database test server running 2.5.1, a title contains search for joy of cooking retrieves 56 titles, 36 of which contain the phrase “joy of cooking” in the 245 (main title) field. They include:
Joy of cooking
All new all purpose joy of cooking
Joy of cooking. |p All about party foods & drinks
Joy of cooking. |p All about pies & tarts
Joy of cooking. |p All about canning & preserving
The joy of cooking : |b a compilation of reliable recipes with a casual culinary chat
The joy of cooking Christmas cookies
Stand facing the stove : the story of the women who gave America the Joy of cooking
A matches exactly title search for joy of cooking only retrieves 17 titles. The search results showing just titles for illustration are:
1. Joy of cooking
2. Joy of cooking
3. Joy of cooking
4. Joy of cooking
5. Joy of cooking
6. Joy of cooking
7. Joy of cooking
8. Joy of cooking
9. Joy of cooking.
10. Joy of cooking
11. Joy of cooking
12. Joy of Cooking.
13. Joy of cooking
14. Joy of cooking
15. Joy of cooking.
16. Joy of cooking. |p All about vegetarian cooking
17. JOY OF COOKING.
As you can see, with the one exception, the search is only retrieving one record where the title contains subfield p, however there are a number of titles in the contains search with |a Joy of cooking. and a |p.
Also, with that one exception, no title containing the phrase “joy of cooking” in either the 245 |a or |b along with other words or phrases is retrieved.
We did reindex Joy of cooking. |p All about pies & tarts to see if that was the issue, but it was not retrieved in a subsequent search.
Kathy Lussier reports:
Thomas Berezansky tracked down the problem in IRC. The "Matches Exactly" option is changing the search to:
^joy of cooking$
when it should be changing it to:
"^joy of cooking$"
The current behavior says the title should start with "joy", contain "of", and end with "cooking." Most of the Joy of Cooking titles did not end with cooking, so they weren't retrieved, but the vegetarian cooking one does indeed end with cooking.
J. Elaine Hardy
PINES & Collaborative Projects Manager
Georgia Public Library Service
1800 Century Place, Ste 150
Atlanta, Ga. 30345-4304
404.235-7128
404.235-7201, fax
<email address hidden>
Changed in evergreen: | |
status: | New → Incomplete |
This bug has wider implications than I first thought. When searching a title with or without an initial article, results differ. For example, PINES title contains search for “restaurant at the end of the universe” returns 20 titles, 16 with that phrase in the 245. Matches exactly for “restaurant at the end of the universe” returns 4 hits – 2 are compilations and 2 don’t have the initial article. Matches exactly title search for “the restaurant at the end of the universe” returns 14 hits, all with the phrase in the 245.
Elaine Hardy