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 wun...@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Oct 6, 2015, at 1:47 PM, vit <bulgako...@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.