Provide a "More Like This" feature to find similar entities

Description

We should expose the "More Like This" feature provided by Lucene in an easy to consume API, probably expressed as a moreLikeThis( Entity, boosting options)

Activity

Sanne GrinoveroMarch 4, 2014 at 1:11 PM

To implement those methods, the proposed API was removed in f337ac7 (just revert it).

Emmanuel BernardMarch 4, 2014 at 1:08 PM

About toContent

/**
- * Find entities looking like the content provided.
- * Only the selected fields will be used for comparison.
- * Selected fields must have a field bridge compatible with
- * the provided content.
- */
- //TODO should we support it? What's the use case
- MoreLikeThisTermination toContent(Reader reader);
-
- /**
- * Find entities looking like the content provided.
- * Only the selected fields will be used for comparison.
- * Selected fields must have a field bridge compatible with
- * the provided content.
- */
- //TODO should we support it? What's the use case
- MoreLikeThisTermination toContent(String data);

Emmanuel BernardMarch 4, 2014 at 1:07 PM

About bullet 1.

//TODO should we keep it
- // if yes it should contain the list of specific options
// a class hierarchy of MoreLikeThisContext < {MorelikeThisBeginningContext|MoreLikeThisFavorFieldSimilarityContext|MoreLikeThisFavorOverallSimilarityContext}
- // *beginning would have favorPerFieldSimilarity and favorOverallSimilarity
- // favorFieldSimilarity would have DisMax specific settings and can carry on to the field selection
- // favorOverallimilarity would have Boolean specific settings and can carry on to the field selection
- MoreLikeThisContext favorPerFieldSimilarity();

Sanne GrinoveroMarch 4, 2014 at 1:07 AM

Sanne GrinoveroMarch 4, 2014 at 12:19 AM

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created January 29, 2014 at 1:21 PM
Updated May 27, 2020 at 6:23 AM
Resolved March 4, 2014 at 1:11 PM