Bug #6612
closedQuotes in search filters are causing issues
0%
Description
Mark Schildhauer pointed out an issue with a search he was trying on search.test.dataone.org. When encapsulating a search term in quotes, the app will wrap quotes around that term again. So the search term "California Current" will result in Solr searching for ""California Current"".
Also, search filters that are encapsulated in quotes then are removed (using the X remove button in the UI) are not able to be added again. The message "This filter is already applied" appears. I think the quotes are messing this up somehow since it uses a string match to determine if the filter is already in the list of currently-applied filters.
Updated by Lauren Walker almost 10 years ago
- Status changed from New to Resolved
Quote characters are taken out of the search term when they are at the end or beginning of the string. Multi-word search terms will still be wrapped in quotes when the query is sent to the index.