Search grammar tag stacking in basic search box

Bug #1777905 reported by Jim Keenan
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
Undecided
Unassigned

Bug Description

Evergreen 3.0

You can end up with stacked search grammar tags in the search box.

To see this happen live in our catalog, go to https://catalog.cwmars.org/eg/opac/home
- search term "heidi", choose Title from the dropdown
- get results
- click on "More Search Options" (this just takes you to the advanced search screen)
- in the advanced search, choose Title and heidi. Search.
- get results. You'll see "title:heidi" in the search box.
- choose Title from the dropdown. don't change what's in the search box.
- get results. You'll see "title:title:heidi"

You can rinse/repeat on this as many times as you like. (I only did it five times.)

It seems to me the system should somehow recognize the search grammar is already on "title:" if Title is chosen from the dropdown and not start stacking.

Tags: opac search
a. bellenir (abellenir)
Changed in evergreen:
status: New → Confirmed
Revision history for this message
Mike Rylander (mrylander) wrote :

**waving hands** We probably want to adjust both the initial server-side query construction to separate system and user supplied components (there's a syntactical mechanism for that spelled with {'s) and enhance the query canonicalization done by the storage service so that it can provide the user-typed portion separate from the constructed part. Then we can display only the user-typed part in the text box.

tags: added: opac search
Revision history for this message
Andrea Neiman (aneiman) wrote :

BOOPAC 3.12 does not stack the grammar - following the steps outlined above and I do not see title:title:<search term> occurring.

If I choose another index with the same search term, I DO see for example author:title:<searchterm> which seems to produce a search of "author <searchterm> AND title <searchterm>" which to me is the expected result?

Will leave this open for additional commentary, though.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.