读书人

[Lucene] Payload通常只用于过滤、打分

发布时间: 2013-01-23 10:44:49 作者: rapoo

[Lucene] Payload一般只用于过滤、打分、排序等
我原以为可以search阶段直接把特定的payload取出来,然后打印一下,但google了很久,似乎没有直接的API.

Payload可能本来就不适用于这种用况。 Lucene in Action说,

引用"... use it during search, either to decide which documents are included in the search results or to alter how matched documents are scored or sorted"

读书人网 >编程

热点推荐