I'll bet your field definition has one of the folding filters in it.
I'm pretty sure that the facet.prefix parameter doesn't send the value
through your analysis chain, it uses it "as is". So my guess (without
looking at the code) is that the facet.prefix value franç is not _in_
your index, rather the term is just franc. If you prefix is fran, what
do you get back? I bet you get no terms back with the cedilla since
the values returned are the values after they've been through the
indexing analysis chain.

So it's not that the facet.prefix doesn't handle international
characters, it's just that it doesn't go through any of your analysis
chain. You can test this by defining a field without any folding and
using facet.prefix with diacritics....

Of course if your analysis chain for the field doesn't have any
folding filters this theory is out the window...



Best,
Erick

On Wed, Jun 7, 2017 at 7:54 AM, arik <arik...@gmail.com> wrote:
> I'm finding that the facet.prefix query parameter does not seem to support
> international characters, regardless of url encoding.  All the other
> parameters work fine, but that one seems unique in this respect.
>
> For example with this data:
>
> François Nédélec
>
> *These queries produce relevant facets:*
>
> /select?facet=on&facet.field=description&facet.prefix=ned&indent=on&q=description:françois&wt=json
> /select?facet=on&facet.field=description&facet.prefix=franc&indent=on&q=description:nédélec&wt=json
> /select?facet=on&facet.field=description&facet.prefix=ned&indent=on&q=description:fran%C3%A7ois&wt=json
>
> *But these do not produce any facets:
> *
>
> /select?facet=on&facet.field=description&facet.prefix=néd&indent=on&q=description:françois&wt=json
> /select?facet=on&facet.field=description&facet.prefix=franç&indent=on&q=description:nédélec&wt=json
> /select?facet=on&facet.field=description&facet.prefix=n%C3%A9d&indent=on&q=description:fran%C3%A7ois&wt=json
>
> It seems therefore that facet.prefix only supports the "post-filtered" text,
> not the raw original text?  Note how the international characters are
> working fine in the "q" param, just not in facet.prefix.
>
> Any info or clarity or work-arounds on this would be much appreciated.
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/international-characters-in-facet-prefix-tp4339415.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to