You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Benjamin Plaquevent <Be...@smile.fr> on 2008/01/18 10:42:24 UTC

Wildcards in first search word including a upper case character

Hi,

            I have a strange Solr behaviour when the request first word includes a upper case character and a wildcard : no result.
I quickly searched into Solr issue tracker but didn't find anything about...

Example:

"S?lr" => no result
"s?Lr?" => no result
"s?lr" => result = "Solr"

java -jar start.jar -version returns null 6.1.3
I use the standard request handler with no particular configuration and I try request from /solr/admin/form.jsp form.

Is it a normal behaviour? Is it a known issue?

Thank you for reading...


Benjamin Plaquevent
Chef de projet technique
Smile - Motoristes Internet
http://www.smile.fr
Tél : 02 51 72 29 69
Fax : 02 51 72 04 22
Mailto : benjamin.plaquevent@smile.fr


Re: Wildcards in first search word including a upper case character

Posted by Erick Erickson <er...@gmail.com>.
wildcard queries are not first passed through an analyzer. See

http://wiki.apache.org/lucene-java/LuceneFAQ#head-4d62118417eaef0dcb87f4370583f809848ea695
"Are Wildcard Queries Case Sensitive", which also has an explanation
of *why* wildcards aren't passed through an analyzer.....

So, assuming you indexed things with an analyzer that lowercases, your index
actually contains "solr", but querying on "S?lr" expands to "Solr" which is
not
in your index. You'll have to lower case yourself.... And StandardAnalyzer
certainly lowercases....

Best
Erick

On Jan 18, 2008 4:42 AM, Benjamin Plaquevent <Be...@smile.fr>
wrote:

> Hi,
>
>            I have a strange Solr behaviour when the request first word
> includes a upper case character and a wildcard : no result.
> I quickly searched into Solr issue tracker but didn't find anything
> about...
>
> Example:
>
> "S?lr" => no result
> "s?Lr?" => no result
> "s?lr" => result = "Solr"
>
> java -jar start.jar -version returns null 6.1.3
> I use the standard request handler with no particular configuration and I
> try request from /solr/admin/form.jsp form.
>
> Is it a normal behaviour? Is it a known issue?
>
> Thank you for reading...
>
>
> Benjamin Plaquevent
> Chef de projet technique
> Smile - Motoristes Internet
> http://www.smile.fr
> Tél : 02 51 72 29 69
> Fax : 02 51 72 04 22
> Mailto : benjamin.plaquevent@smile.fr
>
>