Single term boosting with dismax

2012-06-06 Thread matteosilv
Hi, i'm using dismax query parser. i would like to boost on a single term at query time, instead that on the whole field. i should probably use the standard query parser, however i've also overriden the dismax query parser to handle payload boosting on terms. what i want to obtain is a double boo

Re: Dismax boost + payload boost

2012-05-23 Thread matteosilv
I finally get it working... I was compiling using a different version of solr my class 3.6, while my working solr version was the 3.5 -- View this message in context: http://lucene.472066.n3.nabble.com/Dismax-boost-payload-boost-tp3432650p3985797.html Sent from the Solr - User mailing list archiv

Re: Dismax boost + payload boost

2012-05-23 Thread matteosilv
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,

Re: Dismax boost + payload boost

2012-05-23 Thread matteosilv
I'm trying to get working the digitalpebble payload queryparser... *I've a multivalued field with payloads:* *with type:* In the query debug i can see that i'm using the modified query parser however there