Search code examples
hibernate-searchhibernate-search-6

Hibernate Search 6 More Like This


I see that HS5 has the MLT feature. I have a HS6 project for which I need to use MLT. HS6 documentation has no mention of More Like This. The Changelog doesn't indicate it was dropped.

Any pointers will be useful.


Solution

  • The "More Like This" feature hasn't been re-implemented in Hibernate Search 6 yet. I'll add a mention in the migration guide.

    In the meantime, if you are using the Elasticsearch backend, you can write a native predicate using JSON targeting the Elasticsearch's "More Like This" query. I've heard it's not exactly the same, but I haven't had time to explore it yet. It might fit your use case.

    If you want to see this feature again in Hibernate Search 6, including in the Lucene backend, you can get involved here: HSEARCH-3272.