tag:blogger.com,1999:blog-7583720.post736943723982313696..comments2024-03-05T03:17:02.289-08:00Comments on Salmon Run: Denormalizing Maps with Lucene PayloadsSujit Palhttp://www.blogger.com/profile/06835223352394332155noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7583720.post-70109273559946360582017-01-03T07:50:05.627-08:002017-01-03T07:50:05.627-08:00Its been a while since I worked on Lucene, but bac...Its been a while since I worked on Lucene, but back when I used payloads, you had to build a subclass of the Similarity class. Looks like now you might have to subclass TFIDFSimilarity and override scorePayload? You might want to ask on the lucene-solr mailing list, payloads have become more popular since when I was using it, so there are likely to be people working with it right now and they Sujit Palhttps://www.blogger.com/profile/06835223352394332155noreply@blogger.comtag:blogger.com,1999:blog-7583720.post-38980140041341553462016-12-19T03:34:35.451-08:002016-12-19T03:34:35.451-08:00Thanks for your post, that gave me idea how payloa...Thanks for your post, that gave me idea how payloads works in Lucene.<br /><br />I use Lucene 6.2.1 that replaces PayloadTermQuery by PayloadScoreQuery, I try with the similar code in search:<br />---<br />IndexSearcher indexSearcher = new IndexSearcher(indexReader);<br />// Create tf_idf_sim hear<br />indexSearcher.setSimilarity(tf_idf_sim);<br /><br />SpanTermQuery tQuery = new SpanTermQuery(Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7583720.post-32195740949909260562014-02-24T12:48:38.250-08:002014-02-24T12:48:38.250-08:00You are welcome, glad you found it interesting. If...You are welcome, glad you found it interesting. If you have a use case that can be modeled using payloads, there are other posts I wrote about Lucene payloads (more recently in the timeline) that you may also find useful/interesting.<br />Sujit Palhttps://www.blogger.com/profile/06835223352394332155noreply@blogger.comtag:blogger.com,1999:blog-7583720.post-66814985265520157572014-02-24T05:19:12.085-08:002014-02-24T05:19:12.085-08:00Thank you, very interesting article!Thank you, very interesting article!Anonymousnoreply@blogger.com