Hi,

Forget about patternReplaceCharFilter for a moment. Your example is more clear 
this time.

q=titleName:1999/99*

should return following two docs:

d1) JULIUS CAESER (1999/99)

d2) ARABIAN NIGHTS - 1999/99


This is achievable with the following type. 

1) MappingCharFilterFactory with mappings.txt

"(" => ""
")" => ""

2) WhiteSpaceTokenizerFactory
3) LowercaseFilterFactory

I dont understand your sentence : "i will never be able to specifically search 
the title i want as 1999/99." 
But please try / test above. I also suggest you to use prefix query parser. 

https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-PrefixQueryParser

Ahmet



On Wednesday, March 5, 2014 11:20 PM, Kashish <itzz.me.kash...@gmail.com> wrote:
Hi Ahmet,

Let me explain with another scenario .

There is a title ->  ARABIAN NIGHTS - 1999/99

Now in autocomplete, if i give 1999/99 , in the backend i append an asterisk
to it and form the solr url thsi way

q=titleName:1999/99*

I get the above mentioned title.- so works perfect

Now lets add another title to this.

-> JULIUS CAESER (1999/99)

If i pass the same query parameter, i would definitely expect both these
titles to come up. but this new one doesn't come(Because of the braces).

I can add patternReplaceFilter but this way i will never be able to
specifically search the title i want as 1999/99.

Hope you get what i am trying to achieve. Is my understanding wrong
somewhere?

Thanks.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Wildcard-search-not-working-if-the-query-conatins-numbers-along-with-special-characters-tp4119608p4121512.html

Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to