I am using ngrams and I need to force that a group of them are together, but if any of them fails, I need that the document is also scored. Perhaps you could help me to find the solution or give me a reference of which changes I must do. I am using SpanNearQuery, because the ngrams must be in order. Thanks for your answer. - Ana Maria Freire Veiga -
On Fri, Apr 4, 2008 at 12:38 PM, Ana Rabade <[EMAIL PROTECTED]> wrote: > I am using ngrams and I need to force that a group of them are together, > but if any of them fails, I need that the document is also scored. Perhaps > you could help me to find the solution or give me a reference of which > changes I must do. I am using SpanNearQuery, because the ngrams must be in > order. > Thanks for your answer. > - Ana Maria Freire Veiga - > > On Thu, Apr 3, 2008 at 7:56 PM, Erick Erickson <[EMAIL PROTECTED]> > wrote: > > > Could you explain your use case? Because to say that you want to > > score documents that don't have all the terms with a *phrase query* > > is contradictory. The point of a phrase query is exactly that all > > the terms are there and within some some proximity..... > > > > > > Best > > Erick > > > > On Thu, Apr 3, 2008 at 12:17 PM, Ana Rábade <[EMAIL PROTECTED]> > > wrote: > > > > > Hi! > > > > > > I'm using Lucene Proximity Searches, but I've seen Lucene only scores > > > documents which contain all the terms in the phrase. I also need to > > score > > > documents although they don't contain all those terms. Is it possible > > > with > > > Lucene PhraseQueries or SpanNearQuery? If not, could you tell me a way > > to > > > find my solution? > > > > > > Thank you very much. > > > > > > - Ana M. Freire - > > > > > > >