Ok, I have look at it and it almost solves my problem... My rules list demand to counting only once each token, not each field...
Any idea on how it can be done? Currently I'm using pure logic to accomplish this, more or less like "FieldA:token1 OR (FieldB:token1 AND -FieldA:token1) OR (FieldC:token1 AND -FieldB:token1 AND -FieldA:token1)" -- Nelson Branco SAPO Mapas/GIS -----Original Message----- From: Chris Hostetter [mailto:hossman_luc...@fucit.org] Sent: quarta-feira, 5 de Janeiro de 2011 02:12 To: solr-user@lucene.apache.org Subject: RE: Custom match scoring : 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. can you describe what you want in pusedo code? what you are describing sounds exactly like using the dismax parser with tie=0. that way each "clause" of the input only gets the max score from each of hte fields in the qf param. dismax doesn't sum all matches on each field, it sums the *max* match on each field, plus a tie breaker multiplier times the sum of all other matches on each field -- if tie=0 it's a true disjunction max query, if tie=1 it's a true disjunction sum query. -Hoss
smime.p7s
Description: S/MIME cryptographic signature