Lucene MoreLikeThis cannot be resolved to a type
-
28-10-2019 - |
Question
I'm trying to use MoreLikeThis class from lucene as described in "Lucene in action" book, but that class does not seem to exist :/
I'm using lucene-core-2.9.4.jar, normal indexing and searching works fine. I have looked iniside the jar (and the 3.x.x version), but there is no such class inside, what am I missing?
Solution
Are you referring to the MoreLikeThis class? It should be inside lucene-queries-2.9.4.jar. Look under the contrib/queries folder of your Lucene binary download.
OTHER TIPS
Go to this page: http://www.manning.com/hatcher2/ and download the source code. The class MoreLikeThis is not part of lucene itself, rather an example class related to the book
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow