Add Weight::create() and Weight::create_from_parameters()
commit571a859e7cb30fc8b6940df7a8973e974877e433
authorivmarkp <vivekpal.dtu@gmail.com>
Sat, 22 Apr 2017 11:20:01 +0000 (22 16:50 +0530)
committerOlly Betts <olly@survex.com>
Mon, 19 Jun 2017 21:31:05 +0000 (20 09:31 +1200)
tree03ffa67368a95a40c717a6b5d3830be684c3a031
parent9defddf5217febfb05ea5ee13df7928aa2185504
Add Weight::create() and Weight::create_from_parameters()

These support creating weight objects from human-readable string
descriptions.

Closes https://github.com/xapian/xapian/pull/152
22 files changed:
xapian-applications/omega/weight.cc
xapian-bindings/csharp/csharp.i
xapian-core/api/registry.cc
xapian-core/include/xapian/weight.h
xapian-core/tests/api_serialise.cc
xapian-core/weight/bb2weight.cc
xapian-core/weight/bm25plusweight.cc
xapian-core/weight/bm25weight.cc
xapian-core/weight/boolweight.cc
xapian-core/weight/coordweight.cc
xapian-core/weight/dlhweight.cc
xapian-core/weight/dphweight.cc
xapian-core/weight/ifb2weight.cc
xapian-core/weight/ineb2weight.cc
xapian-core/weight/inl2weight.cc
xapian-core/weight/lmweight.cc
xapian-core/weight/pl2plusweight.cc
xapian-core/weight/pl2weight.cc
xapian-core/weight/tfidfweight.cc
xapian-core/weight/tradweight.cc
xapian-core/weight/weight.cc
xapian-core/weight/weightinternal.h