Hi,
When you add &debugQuery=true to the request, what does your query look like after parsing? Otis-- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: Norberto Meijome <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Monday, June 23, 2008 2:36:12 AM > Subject: Re: n-Gram, only works with queries of 2 letters > > On Mon, 23 Jun 2008 16:23:55 +1000 > Norberto Meijome wrote: > > > hi there, > > my use case : I want to be able to match documents when only a partial > > word > is provided. ie, searching for 'roc' or 'ock' should match documents > containing > 'rock'. > > > > As I understand, the way to solve this problem is to use the nGram > > tokenizer @ > index time and the nGram analyser @ search time. I want at least 'sub terms' > of > 2 to 6 characters indexed, so I can match substrings that length. > > > > Correction - i only get docs returned when the length of my query matches > minGramSize. I changed minGramSize to 3 (+ restart service + reindexed) , and > 2-letter queries fail (as expected). 3 letter queries start working, but > anything larger doesn't. > > B > _________________________ > {Beto|Norberto|Numard} Meijome > > I used to hate weddings; all the Grandmas would poke me and > say, "You're next sonny!" They stopped doing that when i > started to do it to them at funerals. > > I speak for myself, not my employer. Contents may be hot. Slippery when wet. > Reading disclaimers makes you go blind. Writing them is worse. You have been > Warned.