Hold on. JSON query DSL lets you pass quite long content via body. It
should support {!mlt}. At least it's worth a try.!

On Thu, Sep 8, 2022 at 2:53 PM Mikhail Khludnev <[email protected]> wrote:

> Hello Batanun
> I checked {!mlt} source code. It can't swallow external content. I've
> found that Lucene XML parser
> https://lucene.apache.org/core/9_1_0/queryparser/org/apache/lucene/queryparser/xml/CorePlusQueriesParser.html
> is capable to handle <LikeThisQuery>. However, it's diverged and not
> available in Solr out-of-the-box
> https://solr.apache.org/guide/8_8/other-parsers.html#xml-query-parser
>
>
> On Thu, Sep 8, 2022 at 1:16 PM Batanun B <[email protected]> wrote:
>
>> Hi,
>>
>> I'm evaluating if the MoreLikeThis (mlt) feature of solr can be useful
>> for our editors when they are creating new content. We want to trigger this
>> before the content has been inserted in the system, so there is no document
>> in solr that we can use as a base for the mlt search. So we want to use the
>> "externally supplied text" feature, where we provide the article text in
>> the request body of the search. This works great when we use the mlt
>> request handler (/mlt). But we also would like to get facets for this
>> search, and bug SOLR-7883 is stopping us from doing that.
>>
>> Some people suggest that we use the mlt query parser instead, as part of
>> our regular request parser (/select). But I can't get that to work together
>> with the "externally supplied text". It gives me the error "Bad contentType
>> for search handler :text/plain".
>>
>> So, does anyone know how to do a search that uses MoreLikeThis with
>> externally supplied text, and facets at the same time?
>>
>> Regards
>>
>>
>
> --
> Sincerely yours
> Mikhail Khludnev
>


-- 
Sincerely yours
Mikhail Khludnev

Reply via email to