문제

I'm new to Apache Solr and am currently exploring/trying to make use of MoreLikeThis as a search component (instead of dedicated request handler). I'm finding difficult to understand clearly on how this works internally to get more-like-this results?

For example, I'm trying to search for the word java in one of the document field named 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 keys of the documents in name attribute.

My questions here is, how does Solr internally work/match to find more-like-this documents based on the search keyword java? Any explanation with good example are appreciated.

도움이 되었습니까?

해결책

Looks there's no Solr documentation that explain this feature in detail.

But somehow, after some google, managed to find a write-up on How MoreLikeThis Works in Lucene.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top