Puneet Ahuja created SOLR-17948:
-----------------------------------
Summary: Support indexing primitive float[] values for
DenseVectorField via JavaBin
Key: SOLR-17948
URL: https://issues.apache.org/jira/browse/SOLR-17948
Project: Solr
Issue Type: Task
Affects Versions: main (10.0)
Reporter: Puneet Ahuja
Currently, when a document containing a primitive float[] or double[] field is
sent to Solr using the JavaBin format, indexing fails because DenseVectorParser
does not recognize primitive arrays as valid input types. Other loaders (like
JSON or CSV) wrap vectors as lists, so this issue is specific to JavaBin.
I plan to extend DenseVectorParser to handle float[] and double[] inputs in
addition to the existing List-based formats. This change in
solr-javabin-generator allows the JavaBin writer to serialize primitive float[]
and double[] values directly, instead of boxing them into Lists.
Link: https://github.com/SearchScale/solr-javabin-generator/pull/1
This means we can generate ~20% smaller javabin files, and DenseVectorParser in
solr can read and index it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]