lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Term searches with colon(:)
Date Fri, 07 Sep 2012 23:12:36 GMT

: I was wondering if anybody has run into this issue before. Solr is not
: returing any search results for word that contain  colon ( : ) in it
: when we perform a term search containing colon.  We do escape this
: correctly, I believe as shown in the sample (taken from tomcat logs)
: INFO: [] webapp=/XXXXX path=/select
: params={q=+(*\:*)+&rows=100&version=2.2} hits=0 status=0 QTime=0 

what are you expecting that query to match?  because by backslash escpaing 
the colon, what you are asking for there is for Solr to search for the 
literal string "*:*" in your default search field (afterwhatever query 
time analysis is configured on your default search field)

: On the other hand if we prefix the term with a field name, we get
: correct results as shown below
: INFO: [] webapp=/XXXXX path=/select
: params={q=(+description:*\:*)&rows=100&version=2.2} hits=1 status=0
: QTime=0 

perhaps the problem is that you are expecting "description" to be your 
default search field but it is not configured that way?


View raw message