But more terms count as a higher score, so A Cole will score higher than just Cole. This is a 'recall v.s. precision' problem.
On Wed, May 16, 2012 at 5:56 PM, Jack Krupansky <j...@basetechnology.com> wrote: > Ah, sorry. I meant to add that you should have a stop filter in the query > analyzer, but not in the index analyzer. > > -- Jack Krupansky > > -----Original Message----- From: Walter Underwood > Sent: Wednesday, May 16, 2012 8:52 PM > To: solr-user@lucene.apache.org > Subject: Re: Must match and terms with only one letter > > > Except you can never match "a", so that is a bad idea. So much for the query > "vitamin a". > > wunder > > On May 16, 2012, at 5:47 PM, Jack Krupansky wrote: > >> Add "a" (and maybe other single letters) to the stopwords file. Then it >> won't show up in the query at all. >> >> And with edismax, enable PF2 and maybe PF3 so that instances of "a cole" >> would get boosted. >> >> -- Jack Krupansky >> >> -----Original Message----- From: roySolr >> Sent: Wednesday, May 16, 2012 10:58 AM >> To: solr-user@lucene.apache.org >> Subject: Must match and terms with only one letter >> >> Hello, >> >> I use the MM function on my edismax requesthandler(70%). This works great >> but i have one problem: >> >> When is search for "A Cole" there has to been only one term match(mm = >> 70%). >> The problem is the "A", It returns 9200 documents with an "A" in it. Is >> there a posssibility to skip terms with only one character? The MM value >> is >> ok(2 terms -> 1 match), but not when a term is only one character. >> >> Thanks >> Roy >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Must-match-and-terms-with-only-one-letter-tp3984139.html >> Sent from the Solr - User mailing list archive at Nabble.com. > > > -- > Walter Underwood > wun...@wunderwood.org > > > -- Lance Norskog goks...@gmail.com