Project

General

Profile

Actions

Bug #7139

closed

Fix Solr syntax errors with the { and } characters

Added by Lauren Walker about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
10/12/2016
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

Dave V reported this Solr syntax error from the logs today:

org.apache.solr.search.SyntaxError: Cannot parse ' event:read pid:({2E6F8905-1030-42DE-A172-ACE064B099EA} OR "https://pasta.lternet.edu/package/metadata/eml/knb-lter-bes/78/600" OR NEON.D02.SERC.DP1.00004.1 OR NEON.D02.SCBI.DP1.00096.1 OR NEON.D02.BLAN.DP1.00006.1 OR NEON.D02.SCBI.DP1.00023.1 OR NEON.D02.SCBI.DP1.00005.1 OR NEON.D02.SCBI.DP1.10072.1 OR NEON.D02.SERC.DP1.00098.1 OR NEON.D02.SERC.DP1.00014.1 OR NEON.D02.SERC.DP1.10058.1 OR NEON.D02.BLAN.DP1.00097.1 OR NEON.D02.BLAN.DP1.10066.1 OR NEON.D02.SERC.DP1.00001.2 OR NEON.D02.SCBI.DP1.10055.1 OR NEON.D02.BLAN.DP1.00023.1 OR NEON.D02.BLAN.DP1.00005.1 OR NEON.D02.BLAN.DP1.00066.1 OR NEON.D02.SCBI.DP1.00022.1 OR NEON.D02.SERC.DP1.00023.1 OR NEON.D02.SERC.DP1.00002.1 OR NEON.D02.SERC.DP1.00066.1 OR NEON.D02.SERC.DP1.10022.1 OR NEON.D02.SERC.DP1.00041.1 OR NEON.D02.SERC.DP1.10072.1) inPartialRobotList:false isRepeatVisit:false': Encountered " "}" "} "" at line 1, column 54.

I've fixed the Search Model so that it now escapes these characters in searches.

No data to display

Actions

Also available in: Atom PDF