yes, as in the linked post:
public class PayloadSimilarity extends DefaultSimilarity
{
@Override public float scorePayload(int docId, String fieldName, int
start, int end, byte[] payload, int offset, int length)
{
if (length > 0) {
return PayloadHelper.decodeFloat(payload, offset);
}
return 1.0f;
}
}
and a line in the schema.xml pointing at it
--
View this message in context:
http://lucene.472066.n3.nabble.com/Dismax-boost-payload-boost-tp3432650p3985640.html
Sent from the Solr - User mailing list archive at Nabble.com.