bhle/bhle — Issue #253: advanced search: space as search term leads to solr error
Author: akohlbecker
Created: 2011-11-14 13:04:06+00:00
State: open
Labels: bug, minor, Nov 2011, Portal Core 

entering only a space character in an advanced search field leads to an error in the solr query syntax:

for example space as term in title:

org.apache.lucene.queryParser.ParseException: Encountered " ")" ") "" at line 1, column 13.
....
webapp=/solr path=/select params={json.nl=map&wt=json&q=mods_title:(+)} status=400 QTime=11

So fields only containing whitespace, that is fields which can be trimmed empty should be neglected.