段洪义
2013-Aug-23 02:25 UTC
[Xapian-discuss] xapian queryparse whether to support the weight?
query support xapian.Query.OP_SCALE_WEIGHT xapian.Query(xapian.Query.OP_SCALE_WEIGHT, query, weight) queryparse support SCALE_WEIGHT ?
Olly Betts
2013-Aug-25 00:53 UTC
[Xapian-discuss] xapian queryparse whether to support the weight?
On Fri, Aug 23, 2013 at 10:25:29AM +0800, ?????? wrote:> query support xapian.Query.OP_SCALE_WEIGHT > xapian.Query(xapian.Query.OP_SCALE_WEIGHT, query, weight) > > queryparse support SCALE_WEIGHT ?Not explicitly (i.e. there isn't a syntax the user can use which maps to OP_SCALE_WEIGHT), though you can apply OP_SCALE_WEIGHT to the Query object returned by the QueryParser, e.g. to scale the parsed Query relative before combining it with other Query objects. Cheers, Olly