lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nevalosa <>
Subject An interesting requirement of payload and numeric range query
Date Fri, 29 Oct 2010 03:23:43 GMT

Hi, guys
I meet a trouble requirement, it is:
doc1  field:numeric [term:1009, payload:1009; term:1015, payload1015]
doc2  field:numeric [term:1008, payload:1008; term:1016, payload1016]

search: field:numeric term in range[1008, 1015]
expect hits: [doc1,score:1008; doc2: score:1009]
Explain: I want to get score represent by payload, I knew it can implement
PayloadSimilarity, and I can also achieve a multiValueNumericRange query.
problem is that, when get weight from hits, doc1 hits two times and it's
combined by [1009,1015], what I want is the min([1009,1015]).

How can I achieve this? 

View this message in context:
Sent from the Lucene - General mailing list archive at

View raw message