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 "Jason, Kim" <hi...@gmail.com> on 2010/11/29 15:53:26 UTC

Using Ngram and Phrase search

Hi, all
I want to use both EdegeNGram analysis and phrase search.
But there is some problem.

On Field which is not using EdgeNGram analysis, phrase search.is good work.
But if using EdgeNGram then phrase search is incorrect.

Now I'm using Solr1.4.0.
Result of EdgeNGram analysis for "pci express" is below.
http://lucene.472066.n3.nabble.com/file/n1986848/before.jpg 

I thought cause is term position.
So I modified EdgeNGramTokenFilter of lucene-analyzers-2.9.1.
After modified, result is below.
http://lucene.472066.n3.nabble.com/file/n1986848/after.jpg 

So phrase search fot "pci express" from ngram index is good work.
But another problem is happend.

For example, when I searh phrase query "pc express", docs included 'pci
express' are searched too.
In this case I don't want to search for 'pci express'.
I just want exact match "pc express".

Please give your ideas.
Thanks,
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Using-Ngram-and-Phrase-search-tp1986848p1986848.html
Sent from the Solr - User mailing list archive at Nabble.com.