Hello. Thanks for this thread and this pointer!
I've opened https://github.com/apache/lucene/issues/13018 issue based on it. From: dev@lucene.apache.org At: 01/07/24 16:08:48 UTCTo: dev@lucene.apache.org Subject: Re: Lucene v9.9.1: org.apache.lucene.search.ScoreMode Hi. I suspect that the reason for this error may be that BytesRefHash#sort is called more than once on a BytesRefHash instance. This is fine before 9.9.0, but it won't work after https://github.com/apache/lucene/pull/12784. On 2024/01/07 13:41:33 Nazerke S wrote: > I re-run the test in a terminal and getting this: (seems not a dependency > issue) > > (TEST-TestScoreJoinQPNoScore.testRandomJoin-seed#[BD516D11246BE886]) [n: c: > s: r: x: t:] o.a.s.SolrTestCaseJ4 ###Ending testRandomJoin > > > java.lang.AssertionError > > > at > __randomizedtesting.SeedInfo.seed([BD516D11246BE886:C4DBA1A5364C4666]:0) > > > at > org.apache.lucene.util.BytesRefHash.compact(BytesRefHash.java:135) > > > at > org.apache.lucene.util.BytesRefHash.sort(BytesRefHash.java:147) > > > at > org.apache.lucene.search.join.TermsQuery.<init>(TermsQuery.java:68) > > > at > org.apache.lucene.search.join.TermsIncludingScoreQuery.createWeight(TermsIncludi ngScoreQuery.java:133) > > > at > org.apache.solr.search.join.ScoreJoinQParserPlugin$SameCoreJoinQuery.createWeigh t(ScoreJoinQParserPlugin.java:196) > > > at > org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:900) > > > at > org.apache.lucene.search.ConstantScoreQuery.createWeight(ConstantScoreQuery.java :136) > > > at > org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:900) > > > at > org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:554) > > > at > org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSear cher.java:275) > > > at > org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:187 8) > > > at > org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1695 ) > > > at > org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:710) > > > at > org.apache.solr.handler.component.QueryComponent.doProcessUngroupedSearch(QueryC omponent.java:1698) > > > at > org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:423 ) > > > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler. java:467) > > > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java :226) > > > at org.apache.solr.core.SolrCore.execute(SolrCore.java:2884) > > > at org.apache.solr.util.TestHarness.query(TestHarness.java:353) > > > at org.apache.solr.util.TestHarness.query(TestHarness.java:333) > > > at > org.apache.solr.search.join.TestScoreJoinQPNoScore.testRandomJoin(TestScoreJoinQ PNoScore.java:361) > > > at > java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHan dleAccessor.java:104) > > > at java.base/java.lang.reflect.Method.invoke(Method.java:578) > > 2> NOTE: reproduce with: gradlew test --tests > TestScoreJoinQPNoScore.testRandomJoin -Dtests.seed=BD516D11246BE886 > -Dtests.locale=th-Thai-TH -Dtests.timezone=Europe/Berlin > -Dtests.asserts=true -Dtests.file.encoding=UTF-8 > > On Sun, Jan 7, 2024 at 1:35 PM Dawid Weiss <dawid.we...@gmail.com> wrote: > > > > > Can you check whether it's a dependency graph problem somehow, maybe (does > > it compile outside of intellij?). Can you trim down the project to a > > reproducible scenario so that we can look at it? > > > > D. > > > > On Sun, Jan 7, 2024 at 5:53 AM Nazerke S <sn1.naze...@gmail.com> wrote: > > > >> One of the functions takes ScoreMode as an argument and this ScoreMode is > >> not found from dependencies. In Intellij, seeing 'cannot resolve symbol > >> ScoreMode'. > >> > >> > >> @Override > >> > >> public Weight createWeight(IndexSearcher searcher, > >> org.apache.lucene.search.ScoreMode scoreMode, float boost) {...} > >> > >> > >> Tried 'import org.apache.lucene.search.ScoreMode' but not found either > >> way. > >> > >> On Sun, Jan 7, 2024 at 6:39 AM Marcus Eagan <marcusea...@gmail.com> > >> wrote: > >> > >>> It’s there for sure, but that doesn’t mean there is no problem. Could > >>> you share what you are seeing in more detail given the class certainly > >>> exists? > >>> > >>> Marcus Eagan > >>> > >>> > >>> > >>> On Sat, Jan 6, 2024 at 14:05 Chris Hegarty > >>> <christopher.hega...@elastic.co.invalid> wrote: > >>> > >>>> Hi, > >>>> > >>>> I see no issue. ScoreMode is present in lucene-core-9.9.1.jar > >>>> > >>>> $ curl https://dlcdn.apache.org/lucene/java/9.9.1/lucene-9.9.1.tgz > > >>>> lucene-9.9.1.tgz > >>>> ... > >>>> $ $ tar -xzf lucene-9.9.1.tgz $ jar -tvf > >>>> lucene-9.9.1/modules/lucene-core-9.9.1.jar | grep ScoreMode > >>>> 1618 Wed Dec 13 11:06:00 GMT 2023 > >>>> org/apache/lucene/search/ScoreMode.class > >>>> > >>>> Or from maven > >>>> > >>>> $ curl > >>>> https://repo1.maven.org/maven2/org/apache/lucene/lucene-core/9.9.1/lucene-core-9 .9.1.jar > >>>> > lucene-core-9.9.1.jar > >>>> ... > >>>> $ jar -tvf lucene-core-9.9.1.jar | grep ScoreMode > >>>> -rw-r--r-- 0 0 0 1618 13 Dec 11:06 > >>>> org/apache/lucene/search/ScoreMode.class > >>>> > >>>> -Chris. > >>>> > >>>> > On 6 Jan 2024, at 12:42, Nazerke S <sn1.naze...@gmail.com> wrote: > >>>> > > >>>> > Hi, > >>>> > > >>>> > While I was trying to upgrade Solr to use Lucene v9.9.1, I > >>>> encountered 'org.apache.lucene.search.ScoreMode' not found, getting resolve > >>>> class issue. > >>>> > Quickly took a look into the ScoreMode class in lucene codebase, > >>>> there is no change. > >>>> > Maybe it is related to lucene-core-9.9.1.jar issue where ScoreMode > >>>> class is ? > >>>> > Anyone could help with this ? > >>>> > > >>>> > Thanksss, > >>>> > > >>>> > --Nazerke > >>>> > >>>> > >>>> --------------------------------------------------------------------- > >>>> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > >>>> For additional commands, e-mail: dev-h...@lucene.apache.org > >>>> > >>>> > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org