Please provide the following information:
1. Which Solr release are you using?
2. The field type(s) that you are using. Give the full field type (not all
of them, just what you are using.)
3. Add &debugQuery=true to your colon request to see what query gets
generated - the "parsedquery".
4. A small amount of indexed text that has the colons you think should
match.
If you could reproduce your problem using the standard Solr example with the
minimal changes, that would be most helpful. For example, a curl command to
add a text document that has the colon in a field and where the query fails.
As a general rule, you shouldn't expect to see special characters or
punctuation in "text" fields. In string fields, yes.
That said, the StandardTokenizer does in fact keep some special characters,
some of the time. Colon is one that is preserved some of the time.
-- Jack Krupansky
-----Original Message-----
From: Nemani, Raj
Sent: Friday, September 07, 2012 7:04 PM
To: solr-user@lucene.apache.org
Subject: Term searches with colon(:)
All,
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)
Sep 06, 2012 11:30:01 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXX path=/select
params={q=+(*\:*)+&rows=100&version=2.2} hits=0 status=0 QTime=0
On the other hand if we prefix the term with a field name, we get
correct results as shown below
Sep 06, 2012 11:30:29 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/XXXXX path=/select
params={q=(+description:*\:*)&rows=100&version=2.2} hits=1 status=0
QTime=0
Did anybody encounter this behavior before?
Any help is appreciated and Thank you in advance
Raj