Yes, I already looked dismax which I'm using for other purposes, the big deal for this problem is having summed only the best match of each field. In dismax it sum all matches on each field.
Thanks anyway. -- Nelson Branco SAPO Mapas/GIS -----Original Message----- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: quinta-feira, 23 de Dezembro de 2010 18:04 To: solr-user@lucene.apache.org Subject: Re: Custom match scoring Hmmm, have you looked at dismax? If I'm reading your message correctly, it sounds like this may already be there. Of course I've missed the point of messages before. Best Erick On Thu, Dec 23, 2010 at 10:29 AM, Nelson Branco <nelson-bra...@telecom.pt>wrote: > Hi, > > > > I'm implementing a search that has peculiar scoring rules that, as I can > see, isn't supported natively. > > > > The rules are like: > > - Given a set of tokens, the final score would be the sum of > scores of all token by each token can only be scored for its best match over > a set of fields that it might match > > i.e. "restaurant food" (2 tokens) must match "Category^10 Name^5 > Description" > > the token "restaurant" might match documents with all fields but it > must only be given the score of "Category" match > > the token "food" also counts for the score, again, with its best > match on any of indicated fields > > > > Can anyone guide me truth a solution or for a extension point where I can > capture only the best match for a given field? > > > > Thanks in advance. > > > > -- > > Nelson Branco >
smime.p7s
Description: S/MIME cryptographic signature