Hi Hoss,
Thank you for the reply and help. The description field is part of the
defaultHandler's eDisMax search list (qf):
<requestHandler name="defaultHandler" class="solr.SearchHandler"
default="true">
<lst name="defaults">
<str name="defType">edismax</str>
<str name="echoParams">explicit</str>
<float name="tie">0.01</float>
<str name="qf"> mpg description</str>
Similar queries for other escaped characters in "description" using term
search return correctly as shown from the logs correctly.
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\\\*)+&rows=1000&version=2.2} hits=2 status=0 QTime=16
Sep 06, 2012 11:41:51 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\%2B*)+&rows=1000&version=2.2} hits=2 status=0 QTime=0
Sep 06, 2012 11:41:51 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\-*)+&rows=1000&version=2.2} hits=2 status=0 QTime=0
Sep 06, 2012 11:41:51 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\%26*)+&rows=1000&version=2.2} hits=3 status=0 QTime=0
Sep 06, 2012 11:41:51 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\|*)+&rows=1000&version=2.2} hits=1 status=0 QTime=0
Sep 06, 2012 11:41:51 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\!*)+&rows=1000&version=2.2} hits=10 status=0 QTime=0
Sep 06, 2012 11:41:51 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\{*)+&rows=1000&version=2.2} hits=1 status=0 QTime=0
Sep 06, 2012 11:41:51 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\}*)+&rows=1000&version=2.2} hits=1 status=0 QTime=0
Sep 06, 2012 11:41:51 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\[*)+&rows=1000&version=2.2} hits=2 status=0 QTime=0
Sep 06, 2012 11:41:51 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\]*)+&rows=1000&version=2.2} hits=2 status=0 QTime=0
Sep 06, 2012 11:41:51 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\^*)+&rows=1000&version=2.2} hits=2 status=0 QTime=0
Sep 06, 2012 11:41:51 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXXX path=/select
params={q=+(*\~*)+&rows=1000&version=2.2} hits=1 status=0 QTime=16
Thank you in advance for any clues you may have
Thanks
Raj
-----Original Message-----
From: Chris Hostetter [mailto:[email protected]]
Sent: Friday, September 07, 2012 7:13 PM
To: [email protected]
Subject: Re: Term searches with colon(:)
: 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?
-Hoss