Switch the field types from the standard tokenizer to the white space tokenizer and don't use the word delimiter filter.

Or, you can sometimes add custom character mapping tables to some filters and indicate that your desired special characters should be mapped to type "ALPHA".

-- Jack Krupansky

-----Original Message----- From: meghana
Sent: Wednesday, April 10, 2013 6:25 AM
To: solr-user@lucene.apache.org
Subject: Solr : Search with special character

We need to make Solr Search like

"Success & Failure"
"Working 50%"

but Solr query parser eliminates all special characters from search.

my search query is as mentioned below

http://localhost:8080/solr/core/select?q=%22Success%20%26%20Failure%22&hl=on&hl.snippets=99&debugQuery=on

below is debugQuery for it.

<lst name="debug">
  <str name="rawquerystring">"Success & Failure"</str>
  <str name="querystring">Success & Failure"</str>
  <str name="parsedquery">PhraseQuery(text:"success failure")</str>
  <str name="parsedquery_toString">text:"success failure"</str>
  <lst name="explain"/>
   <str name="QParser">LuceneQParser</str>
   <lst name="timing"></lst>
</lst>

We want to make, solr should search with "success & failure" , and should
not eliminate special character.

anybody have any idea, how to do this??




--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Search-with-special-character-tp4054994.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to