Perhaps he needs different analyzer chains for index and query. Create the edge ngrams when indexing, but not when querying.
wunder On Apr 23, 2013, at 2:44 PM, Jack Krupansky wrote: > Why are you bothering to use an Edge/NGram filter if you are setting the > minGramSize to the token size?!! I mean, why bother - just skip the > Edge/NGrem filter and it would give the same result - setting minGramSize to > the token size means that there would be only a single gram and it would be > identical to the token text. > > Now... tell us what you are really trying to accomplish with this diversion. > > -- Jack Krupansky > > -----Original Message----- From: hassancrowdc > Sent: Tuesday, April 23, 2013 4:56 PM > To: solr-user@lucene.apache.org > Subject: minGramSize > > Hi, > I want my minGramSize in ngram filter to be the size of the word passed in > the query. how can i do that? > > Because if i put minsize to 2 and write in abc it gives me result for ab and > bc i just want abc or what ever the length of my word is, i want it to be > the minGram Size. how can i do that? > > Thanks. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/minGramSize-tp4058450.html > Sent from the Solr - User mailing list archive at Nabble.com. -- Walter Underwood wun...@wunderwood.org