Hi, all:<br>
<p>This is the basic implementation of tf-idf scheme (basic scheme used 
in SMART) that can be used in the Xapian. It might still  need some 
futher revision, but I believe it works anyway.:)</p><p>I modified the weight.h to define a subclass Tf_idfWeight and add a new file tf_idf.cc in ../weight in the repo, to implement Tf_idfWeight.</p><p>Here is the git diff patch: <br>
</p><p><a href="https://gist.github.com/2422049">https://gist.github.com/2422049</a></p><p>I think the next thing to do is register this scheme to Xapian and write some test to see whether or not it works?</p><p>I&#39;m grepped the current BM25Weight, TradWeight and BoolWeight, and find clues about Enquire::set_weighting_scheme( ). But something more should be done to understand it.</p>
<p><br></p><p>Best,</p><p>Jiuding<br></p>