There are three ways to trigger MLT:
https://lucene.apache.org/solr/guide/7_4/morelikethis.html

MoreLikeThisHandler allows to supply text externally. Unfortunately, I
can't find the specific example demonstrating it, so not sure if it
just a blob of text or a document.

Regards,
   Alex.

On 11 September 2018 at 09:55, Matt Work Coarr <mattcoarr.w...@gmail.com> wrote:
> Hello,
>
> Using a MoreLikeThisHandler, I was hoping to be able to pass in in the post
> body a json document (the same format as a document indexed in my core, but
> the document in the request is not and should not be added to the core).
>
> I'm thinking it would handle an incoming document similar to how the
> /update handler can split up a json document into the set of fields defined
> in the schema (or auto created fields).
>
> For instance, my input document would look like this:
>
> {
>   "id": 1234,
>   "field1": "blah blah blah",
>   "field2": "foo bar",
>   "field3": 112233
> }
>
> And then I want to be able to use the MoreLikeThis query parameters to
> determine which fields are used in the MLT comparison.
>
> Thanks,
> Matt

Reply via email to