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
>>
>>

Reply via email to