How does the Solr MoreLikeThis component work internally to get results?

I am new to Apache Solr and am currently learning / trying to use MoreLikeThis as a search component (instead of a special request handler). I find it hard to understand how it works internally to get more-like results?

For example, I'm trying to find the word java in one of the fields of a document called mytextcontentfield :

http: // localhost / solr / core0 / select /? q = mytextcontentfield: java & version = 2.2 & start = 0 & rows = 10 & indent = on & debugQuery = on & mlt = true & mlt.fl = mytextcontentfield

and I could see moreLikeThis in the XML response with unique document keys in the name attribute.

My questions are here: how to get Solr to work / match in order to find more-like documents based on java search keyword? Any explanation with a good example is appreciated.

+6
source share
1 answer

It does not have Solr documentation that explains this feature in detail.

But somehow, after some google, I managed to find an entry on How MoreLikeThis Works in Lucene .

+9
source

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


All Articles