You might also consider the white space tokenizer plus the word delimiter
filter with a character map that treats desired special characters as ALPHA.
-- Jack Krupansky
-----Original Message-----
From: meghana
Sent: Thursday, April 11, 2013 2:48 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr : Search with special character
Hi Jack ,
yes, its working by using white space tokenizer. but i can not use that
tokenizer, but solr has good option for using pattern tokenzier. so i'll try
it out. hope that work.
Thanks
Jack Krupansky-2 wrote
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@.apache
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.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Solr-Search-with-special-character-with-phrase-search-tp4054994p4055237.html
Sent from the Solr - User mailing list archive at Nabble.com.