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 vit <bu...@yahoo.com> on 2015/10/06 22:47:02 UTC

EdgeNGramFilterFactory question

I have Solr 4.2

1) Is it possible to somehow use EdgeNGramFilterFactory ignoring white
spaces in n-grams?

2) Is it possible to use EdgeNGramFilterFactory in combination with stemming
?
    Say applying this to "look for close hotel" instead of "looking for
closest hotels"



--
View this message in context: http://lucene.472066.n3.nabble.com/EdgeNGramFilterFactory-question-tp4233034.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: EdgeNGramFilterFactory question

Posted by Walter Underwood <wu...@wunderwood.org>.
You would need an analyzer or char filter factory that removed all spaces. But then you would only get one “edge”. That would make “to be or not to be” into the single token “tobeornottobe”. I don’t think that fixes anything.

Stemming and prefix matching do very different things. Use them in different analysis chains stored in separate fields.

The exact example you list will work fine with stemming and phrase search. Check out the phrase search support in the edismax query parser.

wunder
Walter Underwood
wunder@wunderwood.org
http://observer.wunderwood.org/  (my blog)


> On Oct 6, 2015, at 1:47 PM, vit <bu...@yahoo.com> wrote:
> 
> I have Solr 4.2
> 
> 1) Is it possible to somehow use EdgeNGramFilterFactory ignoring white
> spaces in n-grams?
> 
> 2) Is it possible to use EdgeNGramFilterFactory in combination with stemming
> ?
>    Say applying this to "look for close hotel" instead of "looking for
> closest hotels"
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/EdgeNGramFilterFactory-question-tp4233034.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Re: EdgeNGramFilterFactory question

Posted by vit <bu...@yahoo.com>.
any experience with  EdgeNGramFilterFactory will be appreciated 



--
View this message in context: http://lucene.472066.n3.nabble.com/EdgeNGramFilterFactory-question-tp4233034p4233210.html
Sent from the Solr - User mailing list archive at Nabble.com.