You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by Dmitry Negoda <dm...@gmail.com> on 2011/04/13 21:49:41 UTC

Weird case combination problem

Hi!

I'm using Lucene 2.9.3 together with Solr. I have a product named "Apple 
iPhone 4" in my database and I am running Phrase queries against that 
name like this:

http://10.122.229.147:8984/solr/select?q=(name:%22Apple+iPhone%22)%20AND%20%2B(oid:1003)

The product is found.

http://10.122.229.147:8984/solr/select?q=(name:%22apple+iPhone%22)%20AND%20%2B(oid:1003)

Found again...

http://10.122.229.147:8984/solr/select?q=(name:%22apple+iphone%22)%20AND%20%2B(oid:1003)

Not found. The only change was in the capital letter of "iPhone". But 
that is not the end of it:

http://10.122.229.147:8984/solr/select?q=(name:%22iphone+4%22)%20AND%20%2B(oid:1003)

Found!

So, the problem is not in the  'iPhone' word, its in the specific 
combination of upper case/lower case letters.

Tried to re-import documents into solr, still no luck...

I could publish my entire search index if that would help...

-- 
Regards,

Dmitry Negoda<Dm...@gmail.com>