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 Ryan Yacyshyn <ry...@gmail.com> on 2017/03/05 04:57:38 UTC
Use case for the Shingle Filter
Hi everyone,
I was thinking of using the Shingle Filter to help solve an issue I'm
facing. I can see this working in the analysis panel in the Solr admin, but
not when I make my queries.
I find out it's because of the query parser splitting up the tokens on
white space before passing them along.
This made me wonder what a practical use case can be, for using the shingle
filter?
Any enlightenment on this would be much appreciated!
Thanks,
Ryan
Re: Use case for the Shingle Filter
Posted by Walter Underwood <wu...@wunderwood.org>.
I use the shingle filter to help with the “one word or two” problem. Is it “baby sitter” or “babysitter”? With the shingle filter, searches for “babysitter” will work for content with “baby sitter”, but not the other way around.
If you can identify a list of the one/two-word compounds that are in your content, synonyms are a better solution.
wunder
Walter Underwood
wunder@wunderwood.org
http://observer.wunderwood.org/ (my blog)
> On Mar 4, 2017, at 8:57 PM, Ryan Yacyshyn <ry...@gmail.com> wrote:
>
> Hi everyone,
>
> I was thinking of using the Shingle Filter to help solve an issue I'm
> facing. I can see this working in the analysis panel in the Solr admin, but
> not when I make my queries.
>
> I find out it's because of the query parser splitting up the tokens on
> white space before passing them along.
>
> This made me wonder what a practical use case can be, for using the shingle
> filter?
>
> Any enlightenment on this would be much appreciated!
>
> Thanks,
> Ryan