Well, you could copy to another field (using copyField) and then have an
analyzer with a LimitTokenCountFilterFactory that accepts only 1 token, and
then apply the EdgeNGramFilter to that one token. But you would have to
query explicitly against that other field. Since you are using dismax, you
should be able to add that second field to the qf parameter. And then remove
the EdgeNGramFilter from your main field.
-- Jack Krupansky
-----Original Message-----
From: hassancrowdc
Sent: Tuesday, April 23, 2013 12:09 PM
To: solr-user@lucene.apache.org
Subject: EdgeGram filter
Hi,
I want to edgeNgram let's say this document that has 'difficult contents' so
that if i query (using disman) q=dif it shows me this result. This is
working fine. But now if i search for q=con it gives me this document as
well. is there any way to only show this document when i search for 'dif' or
'di'. basically i want to edgegram 'difficultcontent' not 'difficult' and
'content'. Any help?
Thanks.
--
View this message in context:
http://lucene.472066.n3.nabble.com/EdgeGram-filter-tp4058337.html
Sent from the Solr - User mailing list archive at Nabble.com.