开发者

SOLR/Lucene index return unique results

开发者 https://www.devze.com 2023-01-16 07:38 出处:网络
I have an index th开发者_JAVA百科at has multiple entries for the exact same item, i specified a :<uniqueKey>citation</uniqueKey>

I have an index th开发者_JAVA百科at has multiple entries for the exact same item, i specified a : <uniqueKey>citation</uniqueKey> based on citation, a field that i can use to determine it is unique in the index.

I was wondering if there is some way to adjust the query so that it will only return unique results based on that field.

or rather to delete all duplicates, but the problem with that which ive run into is that I am not storing the text, and the only other unique way to identify documents is based on two fields combined. I am hoping there is a way to do this without needing a new index.

thanks


I think you need Field Collapsing. You may be able to pull this off without reindexing, but I believe the queries take a relatively long time.

0

精彩评论

暂无评论...
验证码 换一张
取 消