alessandrobenedetti commented on code in PR #5328: URL: https://github.com/apache/solr/pull/5328#discussion_r4722635440
########## solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc: ########## @@ -176,7 +195,24 @@ For more details, refer to the official https://arxiv.org/pdf/1603.09320[2018 pa Accepted values: Any integer. -`DenseVectorField` supports the attributes: `indexed`, `stored`, `multivalued`. +`DenseVectorField` supports the attributes: `indexed`, `stored`, `multiValued`, `useRawVectorsAsStored`. + +For example, to index a vector and return it without a separate stored-field copy: + +[source,xml] +---- +<fieldType name="raw_vector" class="solr.DenseVectorField" vectorDimension="4" + similarityFunction="cosine" useRawVectorsAsStored="true"/> +<field name="vector" type="raw_vector" indexed="true" stored="false"/> +---- + +The vector can be returned by `/select` and xref:configuration-guide:realtime-get.adoc[RealTime Get]. +RealTime Get also returns vectors from uncommitted updates. +The `fl` parameter controls which fields are returned, including explicit field names, wildcards, and aliases. +Single-valued raw vectors are also preserved when atomic updates change other fields in the document. + +Reading raw vector values has a different access cost from reading stored fields. +If your application frequently returns vectors, for example with `fl=*`, benchmark the retrieval workload before choosing between the two options. Review Comment: remove it -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
