lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: Wildcard search not working if the query contains numbers along with special characters.
Date Wed, 05 Mar 2014 21:30:47 GMT


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


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.


On Wednesday, March 5, 2014 11:20 PM, Kashish <> 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


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


View this message in context:

Sent from the Solr - User mailing list archive at

View raw message