public Map<String,Object> transform(Map<String,Object> row , Context ctx){ row.put("$docBoost", 3445); return row;
} On Wed, Jul 22, 2009 at 12:02 PM, prerna07<pkhandelw...@sapient.com> wrote: > > Hi, > > I have to boost document, Can someone help me understanding how can we > implement docBoost via transformer. > > Thanks, > Prerna > > > Marc Sturlese wrote: >> >> If you mean at indexing time, you set field boost via data-config.xml. >> That boost is parsed from there and set to the lucene document going >> through DocBuilder,java, SolrInputDocuemnt.java and DocuemntBuilder.java >> In case you want to set full-document boost (not just to a field) you can >> do it setting a value to the key $docBoost via transformer. That value is >> set using same classes (DocBuilder,java, SolrInputDocuemnt.java and >> DocuemntBuilder.java). >> >> >> >> dabboo wrote: >>> >>> Hi, >>> >>> Can anyone please tell me where I can find the actual >>> logic/implementation of field boosting in Solr. I am looking for classes. >>> >>> Thanks, >>> Amit Garg >>> >> >> > > -- > View this message in context: > http://www.nabble.com/Boosting-Code-tp22119017p24600769.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- ----------------------------------------------------- Noble Paul | Principal Engineer| AOL | http://aol.com