Lucene - comparing data in multiple indices

Can I compare data from multiple Lucene indexes? I would like to get documents that have the same value in similar fields (for example, first name, last name) for two indexes. Does Lucence support queries that can do this?

+3
source share
1 answer

Well, in part. You can create identical document schemas by index and at least choose the right set of hits. However, as Lucene's similarity documentation shows , the idf (return document frequency) coefficient for Lucene counting depends on both the size of the index and the number of documents that have a search query in the index. Both of these factors are index dependent. Therefore, the same match from different indices may have different points depending on these factors.

+2
source

Source: https://habr.com/ru/post/1726466/


All Articles