Hi Grace, I'd like to reiterate what Mikhail said but emphasize on using the MLTQParser. Issues like this is why the MLT query parser was added ( https://issues.apache.org/jira/browse/SOLR-6248 )
On Wed, Feb 8, 2023 at 1:22 PM Mikhail Khludnev <m...@apache.org> wrote: > Hello, Grace. > Now, MoreLikeThis handler carries the burden of invoking FacetComponet's > internals, but it does nothing for highlighting, and there is no way to > plug HighlightingComponent in it via solrconfig.xml. > So, there are two options: someone makes hands dirty to plug > HighlightingComponent into MLTHandler; or you can switch to MLT Query, > which should be highlighted by the standard SearchHandler flow. > > On Wed, Feb 8, 2023 at 11:57 PM Grace Sainsbury <grac...@gmail.com> wrote: > > > Thanks again for fixing the NPE issue so quickly. I've noticed another > > issue, but I'm not sure if it's a configuration issue on my end. If I > > enable highlighting by providing the hl and hl.q parameters, I don't get > > any highlighting in the results. There is no highlighting section in the > > returned results. > > > > Is there something I need to do to enable the highlighting component in > the > > MoreLikeThis handler? > > > > Thanks, > > Grace > > > > > -- > Sincerely yours > Mikhail Khludnev > https://t.me/MUST_SEARCH > A caveat: Cyrillic! > -- Anshum Gupta