Sunday, April 1, 2018

FW: Upgrading a Plugin from 6.6 to 7.x

-----Original Message-----
From: Atita Arora [mailto:atitaarora@gmail.com]
Sent: 21 March 2018 19:01
To: solr-user@lucene.apache.org
Subject: Re: Upgrading a Plugin from 6.6 to 7.x

Hi Peter,


*(Sorry for the earlier incomplete email - I hit send by mistake)*

I haven't really been able to look into it completely , but my first glance
says , it should be because the method signature has changed.

Iam looking here : https://lucene.apache.org/core/7_0_0/core/org/apache/
lucene/search/Query.html


createWeight
<https://lucene.apache.org/core/7_0_0/core/org/apache/lucene/search/Query.ht
ml#createWeight-org.apache.lucene.search.IndexSearcher-boolean-float-
>
(IndexSearcher
<https://lucene.apache.org/core/7_0_0/core/org/apache/lucene/search/IndexSea
rcher.html
>
searcher, boolean needsScores, float boost)
Expert: Constructs an appropriate Weight implementation for this query.

While at :

https://lucene.apache.org/core/6_6_0/core/org/apache/lucene/search/Query.htm
l


createWeight
<https://lucene.apache.org/core/6_6_0/core/org/apache/lucene/search/Query.ht
ml#createWeight-org.apache.lucene.search.IndexSearcher-boolean-
>
(IndexSearcher
<https://lucene.apache.org/core/6_6_0/core/org/apache/lucene/search/IndexSea
rcher.html
>
searcher,
boolean needsScores)
Expert: Constructs an appropriate Weight implementation for this query.

You would need a code change for this to make it work in Version 7.

Thanks,
Atita


On Wed, Mar 21, 2018 at 6:59 PM, Atita Arora <atitaarora@gmail.com> wrote:

> Hi Peter,
>
> I haven't really been able to look into it completely , but my first
> glance says , it should be because the method signature has changed.
>
> Iam looking here :
> https://lucene.apache.org/core/7_0_0/core/org/apache/
> lucene/search/Query.html
>
> createWeight
> <https://lucene.apache.org/core/7_0_0/core/org/apache/lucene/search/Qu
> ery.html#createWeight-org.apache.lucene.search.IndexSearcher-boolean-f
> loat->
> (IndexSearcher
> <https://lucene.apache.org/core/7_0_0/core/org/apache/lucene/search/In
> dexSearcher.html> searcher, boolean needsScores, float boost)
> Expert: Constructs an appropriate Weight implementation for this query.
>
> While at :
>
>
> On Wed, Mar 21, 2018 at 4:16 PM, Peter Alexander Kopciak
> <peter@kopciak.at
> > wrote:
>
>> Hi!
>>
>> I'm still pretty new to Solr and I want to use the vector Scoring
>> plugin (
>> https://github.com/saaay71/solr-vector-scoring/network) but
>> unfortunately, it does not seem to work for newer Solr versions.
>>
>> I tested it with 6.6 to verify its functionality, so it seems to be
>> broken because of the upgrade to 7.x.
>>
>> When following the installation procedure and executing the examples,
>> I ran into the following error with Query 1:
>>
>> java.lang.UnsupportedOperationException: Query {! type=vp f=vector
>> vector=0.1,4.75,0.3,1.2,0.7,4.0 v=} does not implement createWeight
>>
>> Does anyone has a lead for me how to fix/upgrade the plugin? The
>> createWeight method seems to exist, so I'm not sure where to start
>> and waht the problem seems to be.
>>
>
>

No comments:

Post a Comment