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 "R. Tan" <ta...@gmail.com> on 2009/10/12 18:42:16 UTC
Letters with accent in query
Hi,
I'm querying with an accented keyword such as "café" but the debug info
shows that it is only searching for "caf". I'm using the ISOLatin1Accent
filter as well.
Query:
http://localhost:8983/solr/select?q=%E9&debugQuery=true
Params return shows this:
<lst name="params">
<str name="q"/>
<str name="debugQuery">true</str>
</lst>
What am I missing here?
Rih
Re: Letters with accent in query
Posted by "R. Tan" <ta...@gmail.com>.
Correct. Apparently, Firefox is the only browser that translate it é to
%E9.
On Wed, Oct 14, 2009 at 3:06 AM, Chris Hostetter
<ho...@fucit.org>wrote:
>
> : I'm querying with an accented keyword such as "café" but the debug info
> : shows that it is only searching for "caf". I'm using the ISOLatin1Accent
> ...
> : http://localhost:8983/solr/select?q=%E9&debugQuery=true
> :
> : Params return shows this:
> : <lst name="params">
> : <str name="q"/>
>
> ...that's a pretty good tip off that you aren't URL encoding the character
> they way your servlet container is expecting it. I suspect what you
> really want is...
>
> http://localhost:8983/solr/select?q=%C3%A9&debugQuery=true
>
>
>
>
>
>
> -Hoss
>
Re: Letters with accent in query
Posted by Chris Hostetter <ho...@fucit.org>.
: I'm querying with an accented keyword such as "caf�" but the debug info
: shows that it is only searching for "caf". I'm using the ISOLatin1Accent
...
: http://localhost:8983/solr/select?q=%E9&debugQuery=true
:
: Params return shows this:
: <lst name="params">
: <str name="q"/>
...that's a pretty good tip off that you aren't URL encoding the character
they way your servlet container is expecting it. I suspect what you
really want is...
http://localhost:8983/solr/select?q=%C3%A9&debugQuery=true
-Hoss
Re: Letters with accent in query
Posted by Michael <so...@gmail.com>.
What tokenizer and filters are you using in what order? See schema.xml.
Also, you may wish to use ASCIIFoldingFilter, which covers more cases
than ISOLatin1AccentFilter.
Michael
On Mon, Oct 12, 2009 at 12:42 PM, R. Tan <ta...@gmail.com> wrote:
> Hi,
> I'm querying with an accented keyword such as "café" but the debug info
> shows that it is only searching for "caf". I'm using the ISOLatin1Accent
> filter as well.
>
> Query:
> http://localhost:8983/solr/select?q=%E9&debugQuery=true
>
> Params return shows this:
> <lst name="params">
> <str name="q"/>
> <str name="debugQuery">true</str>
> </lst>
>
> What am I missing here?
>
> Rih
>