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 jOhn <ne...@gmail.com> on 2009/08/20 23:29:34 UTC

WordDelimiterFilter misunderstanding

I've misunderstood WordDelimiterFilter.  You might think that
catenateAll="1" would append the full phrase (sans delimiters) as an OR
against the query.

So "jOkersWild" would produce:

"j (okers wild)" OR "jokerswild"

But you thought wrong.  Its actually:

"j (okers wild jokerswild)"

Which is confusing and won't match... Anyone know of a filter mod to do the
former ?

-nc

Re: WordDelimiterFilter misunderstanding

Posted by Yonik Seeley <yo...@lucidimagination.com>.
This is unfortunately outside the scope of what filters can currently
do at query time.
This is why the example schema has WordDelimiterFilter only producing
subwords at query time (not catenating them).

-Yonik
http://www.lucidimagination.com



On Thu, Aug 20, 2009 at 5:29 PM, jOhn<ne...@gmail.com> wrote:
> I've misunderstood WordDelimiterFilter.  You might think that
> catenateAll="1" would append the full phrase (sans delimiters) as an OR
> against the query.
>
> So "jOkersWild" would produce:
>
> "j (okers wild)" OR "jokerswild"
>
> But you thought wrong.  Its actually:
>
> "j (okers wild jokerswild)"
>
> Which is confusing and won't match... Anyone know of a filter mod to do the
> former ?
>
> -nc
>