Re: NullPointerException when using facets in More Like This Query

2023-02-08 Thread Grace Sainsbury
Thanks for the quick fix! It seems to have resolved the issue. On Tue, 7 Feb 2023 at 16:29, Mikhail Khludnev wrote: > https://github.com/apache/solr/pull/1339 > Reviews are welcome. > > On Tue, Feb 7, 2023 at 10:54 PM Grace Sainsbury wrote: > > > I've created a ticket for this here: > > > > htt

Re: NullPointerException when using facets in More Like This Query

2023-02-07 Thread Mikhail Khludnev
https://github.com/apache/solr/pull/1339 Reviews are welcome. On Tue, Feb 7, 2023 at 10:54 PM Grace Sainsbury wrote: > I've created a ticket for this here: > > https://issues.apache.org/jira/browse/SOLR-16648 > > It only seems to affect The MoreLIkeTHis query handler, The same facet > setup work

Re: NullPointerException when using facets in More Like This Query

2023-02-07 Thread Grace Sainsbury
I've created a ticket for this here: https://issues.apache.org/jira/browse/SOLR-16648 It only seems to affect The MoreLIkeTHis query handler, The same facet setup works fine using the standard query handler. On Mon, 6 Feb 2023 at 15:36, Mikhail Khludnev wrote: > Devs, heads up! > > At first gl

Re: NullPointerException when using facets in More Like This Query

2023-02-06 Thread Mikhail Khludnev
Devs, heads up! At first glance this failure doesn't look like mlt specific. It just falls down on NPE when it has no result (null docset, ha!) in fq and then attempts to cache null. Not good, you know. I hope I'm wrong. $ git diff diff --git a/solr/core/src/test/org/apache/solr/handler/MoreLikeT

Re: NullPointerException when using facets in More Like This Query

2023-02-06 Thread Grace Sainsbury
Hi Mikhail, I don't have an account to file a JIRA ticket. Grace On Mon, 6 Feb 2023 at 13:37, Mikhail Khludnev wrote: > Hello, Grace. > It seems like a bug deserves a JIRA issue at least. > > On Mon, Feb 6, 2023 at 9:07 PM Grace Sainsbury wrote: > > > I have a MoreLikeThis query handler set u

Re: NullPointerException when using facets in More Like This Query

2023-02-06 Thread Mikhail Khludnev
Hello, Grace. It seems like a bug deserves a JIRA issue at least. On Mon, Feb 6, 2023 at 9:07 PM Grace Sainsbury wrote: > I have a MoreLikeThis query handler set up on my index: > > > > all > 10 >text > > > > If I use faceting on a query with no no tagging and e

NullPointerException when using facets in More Like This Query

2023-02-06 Thread Grace Sainsbury
I have a MoreLikeThis query handler set up on my index: all 10 text If I use faceting on a query with no no tagging and exclusion everything works as expected. eg: /mlt?facet.field=genre&facet.mincount=1&facet=true&fq=genre:{GENRE_VALUE}&indent=true&q.op=OR&q=id: