On Fri, Feb 5, 2010 at 4:53 PM, Ahmet Arslan <iori...@yahoo.com> wrote:

> > Just for your information: since you are using
> > whitespacetokenizer château won't retrieve documents
> > containing (comma) château,
>
> Thats the problem. I just see that your matched (multivalued-field) all
> contains chateau thats why all:chateau is matching. And it has château,
> (with comma) so all:château is not matching. Probably  q=all:château,  will
> return that document. It is better to use StandardTokenizerFactory in your
> case.
>
>
>
>
I use StandardTokenizerFactory. No change. I don't htink the problem is with
comma. Comma is add by Solr. On XML result no comma appear :
<doc>
<arr name="all">
<str>Tout voir, tout savoir</str>
<str>Le château féodal</str>
<str>Harris</str>
<str>Bruce</str>
<str>Dennis</str>
</arr>
<arr name="artiste">
<str>Harris</str>
<str>Bruce</str>
<str>Dennis</str>
</arr>
<arr name="collection">
<str>Tout voir, tout savoir</str>
</arr>
<arr name="description">
<str>Le château féodal</str>
</arr>
<arr name="id">
<str>84907</str>
</arr>
</doc>

I do other tests. I directly write url in my browser adresse bar :
http://localhost:8080/solr/select/?q=all:château<http://localhost:8080/solr/select/?q=all:ch%C3%A2teau>
and i have result  !!! and the  url is now :
http://localhost:8080/solr/select/?q=all:ch%E2teau
The character â is replace by %E2. I use Firefox 3.6.

I try i with IE same result ...

Then i test with Solrj ... java code :

    SolrServer server = getServer();
    SolrQuery query = new SolrQuery();
    query.setQuery( "all:château" );
    QueryResponse rsp = server.query( query );
    SolrDocumentList docs = rsp.getResults();
    for (Iterator iterator = docs.iterator(); iterator.hasNext();)
    {
      SolrDocument solrDocument = (SolrDocument) iterator.next();
      System.out.println("  " + solrDocument.getFieldValue("all"));
    }

No result ...

-- 
Yann

Reply via email to