lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Facet query with special characters
Date Mon, 07 Dec 2009 23:30:47 GMT

: When performing a facet query where part of the value portion has a 
: special character (a minus sign in this case), the query returns zero 
: results unless I put a wildcard (*) at the end.

check your analysis configuration for this fieldtype, in particular look 
at what debugQuery produces for your parsed query, and look at what 
analysis.jsp says it will do at query time with the input string 
"pds-comp.domain" ... because it sounds like you have a disconnect between 
how the text is indexed and how it is searched.  adding a * to your 
input query forces it to make a WildcardQuery which doesn't use analysis, 
so you get a match on the literal token.

in short: i suspect your problem has nothing to do with query string 
escaping, and everything to do with field tokenization.


View raw message