Lucene v9.9.1: org.apache.lucene.search.ScoreMode

2024-01-06 Thread Nazerke S
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 Sco

Re: Lucene v9.9.1: org.apache.lucene.search.ScoreMode

2024-01-06 Thread Chris Hegarty
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 2

Re: Lucene v9.9.1: org.apache.lucene.search.ScoreMode

2024-01-06 Thread Marcus Eagan
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 wrote: > Hi, > > I see no issue. ScoreMode is present in lucene-core-9.9.1.jar > > $ cur

Re: Lucene v9.9.1: org.apache.lucene.search.ScoreMode

2024-01-06 Thread Nazerke S
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 'im

Re: Lucene v9.9.1: org.apache.lucene.search.ScoreMode

2024-01-06 Thread Dawid Weiss
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 wrote: > One of the functions takes ScoreMode as an argume