Project

General

Profile

Actions

Bug #6612

closed

Quotes in search filters are causing issues

Added by Lauren Walker over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
10/28/2014
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

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.

Actions #1

Updated by Lauren Walker over 9 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.

Actions

Also available in: Atom PDF