Lucene:得到字段1匹配的结果,UNLESS字段2也匹配

时间:2015-10-09 20:20:32

标签: lucene

假设我在lucene中有一组文档,并且我有一个当前结果XX有一个familyIDthreadID。是否可以编写表达式的查询:

results where result.threadID is X.threadID AND (result.familyID is not X.family ID, UNLESS result.ID is X.ID)

1 个答案:

答案 0 :(得分:0)

一位同事遇到了答案:

(threadID:X.threadID -familyID:X.familyID) id:x.ID