saaay71 / solr-vector-scoring

Vector Plugin for Solr: calculate dot product / cosine similarity on documents
Apache License 2.0
34 stars 22 forks source link

Integrating with solr 8.5 #7

Open causalbody opened 4 years ago

causalbody commented 4 years ago

Any thoughts on how to get this running on solr8.5? CustomScoreQuery and FunctionScoreQuery both seem to be unavailable in solr8.5.

satishsilveri commented 4 years ago

any leads on this thread?

satishsilveri commented 4 years ago

I have upgraded the plugin to Solr 8.6. I have created a pull request but seems like the owner of the project is inactive. Meanwhile, you can refer to the code from the forked project.

https://github.com/satishsilveri/solr-vector-scoring

alessandrobenedetti commented 3 years ago

FYI: https://github.com/DmitryKey/solr-vector-scoring addresses the same problem

Related blogs:

https://dmitry-kan.medium.com/neural-search-with-bert-and-solr-ea5ead060b28

https://medium.com/swlh/fun-with-apache-lucene-and-bert-embeddings-c2c496baa559

satishsilveri commented 3 years ago

On Thu, Dec 10, 2020 at 10:33 AM Alessandro Benedetti < notifications@github.com> wrote:

FYI: https://github.com/DmitryKey/solr-vector-scoring addresses the same problem

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/saaay71/solr-vector-scoring/issues/7#issuecomment-742595351, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIMRONOYGUOPDTNZNY3YI73SUDS5NANCNFSM4MVXOENA .

Thanks!

ufuk23 commented 3 years ago

I have upgraded the plugin to Solr 8.6. I have created a pull request but seems like the owner of the project is inactive. Meanwhile, you can refer to the code from the forked project.

https://github.com/satishsilveri/solr-vector-scoring

@satishsilveri Did you test it? Is it working with Solr 8.6? Thanks for your upgrade.

satishsilveri commented 3 years ago

yes! it works.

On Tue, Jan 5, 2021 at 2:37 PM deepBlue notifications@github.com wrote:

I have upgraded the plugin to Solr 8.6. I have created a pull request but seems like the owner of the project is inactive. Meanwhile, you can refer to the code from the forked project.

https://github.com/satishsilveri/solr-vector-scoring

@satishsilveri https://github.com/satishsilveri Did you test it? Is it working with Solr 8.6? Thanks for your upgrade.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/saaay71/solr-vector-scoring/issues/7#issuecomment-754853451, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIMRONMQMGK37RNLS3OAQELSYNS7NANCNFSM4MVXOENA .

ufuk23 commented 3 years ago

yes! it works. On Tue, Jan 5, 2021 at 2:37 PM deepBlue @.***> wrote: I have upgraded the plugin to Solr 8.6. I have created a pull request but seems like the owner of the project is inactive. Meanwhile, you can refer to the code from the forked project. https://github.com/satishsilveri/solr-vector-scoring @satishsilveri https://github.com/satishsilveri Did you test it? Is it working with Solr 8.6? Thanks for your upgrade. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#7 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIMRONMQMGK37RNLS3OAQELSYNS7NANCNFSM4MVXOENA .

@satishsilveri Could you please explain how to use it? I think you coded CustomVectorValueSource.java but it's different from VectorQParserPlugin so how could we use it. Your documentation is according to the saaay71 version, could you please explain step by step like saaay71 main page?

satishsilveri commented 3 years ago

@ufuk23 everything is the same. Just use the VectorPlugin8.6 jar instead. All the steps are exactly the same.

ufuk23 commented 3 years ago

@ufuk23 everything is the same. Just use the VectorPlugin8.6 jar instead. All the steps are exactly the same.

@satishsilveri Ok thanks but I get an error while running the query. java.lang.NullPointerException com.github.saaay71.solr.CustomVectorValueSource$1.advanceExact(CustomVectorValueSource.java:58)