Thanks for the answer. I've implemented to score documents by their payload value. I've implemented a custom PayloadQParserPlugin that extends QParserPlugin as like yours.
However I use edismax at my application and at this way I can not use edismax spesific things. I should make it extend edismax or I should do that: if a search occurs on a usual field and a spesific field(payload field) score will be calculated from sum of usual field score and payload fied score via my custom alternative similarity. I've done per field similarity function but I got that error: "FieldType 'payloads' is configured with a similarity, but the global similarity does not support it: class org.apache.solr.search.similarities.DefaultSimilarityFactor" I think that I should ask this at user list. Thanks again. 2013/11/29 Erik Hatcher <erik.hatc...@gmail.com> > I think what you want is a PayloadTermQuery in the mix. There's some > initial stuff here: https://issues.apache.org/jira/browse/SOLR-1485 > > Erik > > On Nov 27, 2013, at 12:55 PM, Furkan KAMACI <furkankam...@gmail.com> > wrote: > > > Hi; > > > > I've asked same question at Solr mail list but could not get any answer. > I > > have a payload field at my schema (Solr 4.5.1) When a user searches for a > > keyword I will calculate the usual score and "if" a match occurs at that > > payload field I will add payload to the general score (payload * > normalize > > coefficient) > > > > How can I do that? Custom payload similarity class or custom function > > query? > > > > I've followed here: > > http://sujitpal.blogspot.com/2013/07/porting-payloads-to-solr4.html#! > but > > decodeNormValue if a final method anymore. How about that: > > http://www.solrtutorial.com/custom-solr-functionquery.html > > > > Any ideas about my aim? > > > > Thanks; > > Furkan KAMACI > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >