Solr中的Query Elevation Component在Lucene中是如何实现的?
How is the Query Elevation Component in Solr implemented in Lucene?
我想知道,因为我想在核心 Lucene 中实现它。
查询提升组件是一个特定于 Solr 的组件。源代码is available on Github.
一般来说modifies the existing query and inserts itself into the available sort order.
这样它不会影响查询中的任何其他内容,除了应该作为提升组件的一部分进行更改的内容。它还使任何其他 parameters/features 可供链中的其他组件使用。
getBoostDocs
方法将 docid 解析到它们的优先位置。
我想知道,因为我想在核心 Lucene 中实现它。
查询提升组件是一个特定于 Solr 的组件。源代码is available on Github.
一般来说modifies the existing query and inserts itself into the available sort order.
这样它不会影响查询中的任何其他内容,除了应该作为提升组件的一部分进行更改的内容。它还使任何其他 parameters/features 可供链中的其他组件使用。
getBoostDocs
方法将 docid 解析到它们的优先位置。