[
https://issues.apache.org/jira/browse/SOLR-16952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17779322#comment-17779322
]
Qais Qadri commented on SOLR-16952:
-----------------------------------
Sure [~abenedetti],
The field defined as solr.DenseVectorField is expected to store an array of
floats, right? And this worked right in case of a single shard collection
meaning it indeed stored and returned array of floats. But in a multishard
collection, the field returns back an array of strings instead of array of
floats. I have attached a screenshot previously where the field name _vector_
has value as array of strings instead of array of floats when original data
that was indexed had list of floats, but If I create a collection with only one
shard and index same data, it is correctly stored as array of floats. This
causes the query on the field in multishard also return incorrect results.
> solr.DenseVectorField does not work on a collection with more than 1 shards
> ---------------------------------------------------------------------------
>
> Key: SOLR-16952
> URL: https://issues.apache.org/jira/browse/SOLR-16952
> Project: Solr
> Issue Type: Bug
> Components: multicore
> Affects Versions: 9.0, 9.1, 9.2, 9.1.1, 9.3, 9.2.1
> Environment: environment check on:
> Ubuntu 20.04
> java 11 and java 17
> Reporter: Qais Qadri
> Priority: Critical
> Attachments: Screenshot from 2023-08-22 15-32-48.png
>
>
> the field type solr.DenseVectorField introduced in solr 9.0 works well with
> single core user managed and single shard collection in solr cloud way, but
> in any multi shard collection it stores data as list of strings instead of
> list of floats and running query on top of it also fails to provide correct
> results.
>
> attaching screenshot, the field name is vector, which is defined as
> <fieldType name="knn_vector" class="solr.DenseVectorField"
> vectorDimension="512" similarityFunction="cosine"/>
> {color:#000080}
> {color}
> <field name="vector" type="knn_vector" indexed="true" stored="true"/>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]