You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Alexander Reelsen <al...@spinscale.de> on 2013/03/24 20:51:04 UTC
Using AnalyzingSuggester with stopwords
Hey there,
I am trying to get up some working example with the AnalyzingSuggester and
stopwords - like it is done in the corresponding unit test.
I thought, I could build the AnalyzingSuggester from a
HighfrequencyDictionary using a non_analyzed field - and then use a
stopwordsanalyzer in the constructor.
This has however not worked out. I couldnt get any suggestions for
"stopword foo"...
I guess I am doing something totally wrong, due to not getting it right how
the AnalyzingSuggester is working, so thanks for any help.
--Alexander
Re: Using AnalyzingSuggester with stopwords
Posted by Simon Willnauer <si...@gmail.com>.
Alex, did you try to get it working with a single term like adding
"the foobar" and then drawing suggestions for "the foo" ?
simon
On Sun, Mar 24, 2013 at 8:51 PM, Alexander Reelsen <al...@spinscale.de> wrote:
> Hey there,
>
> I am trying to get up some working example with the AnalyzingSuggester and
> stopwords - like it is done in the corresponding unit test.
>
> I thought, I could build the AnalyzingSuggester from a
> HighfrequencyDictionary using a non_analyzed field - and then use a
> stopwordsanalyzer in the constructor.
>
> This has however not worked out. I couldnt get any suggestions for
> "stopword foo"...
>
> I guess I am doing something totally wrong, due to not getting it right how
> the AnalyzingSuggester is working, so thanks for any help.
>
>
> --Alexander
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org