agazzarini opened a new pull request, #5328: URL: https://github.com/apache/solr/pull/5328
https://issues.apache.org/jira/browse/SOLR-18207 # Description Add `useRawVectorsAsStored` to retrieve dense vectors directly from Lucene vector values. With `stored=false`, this avoids storing a duplicate copy of the vectors. When both options are enabled, raw vector values take precedence for retrieval. # Solution Support raw vector retrieval in `/select` and real-time get, including uncommitted documents in the transaction log. Preserve float and byte vectors during atomic updates, including dimension-one vectors, nested children, and multi-valued vectors. Preserve the nested paths of vector children when processing atomic updates from the transaction log so that `[child fl=…]` can flatten them onto the parent. Reject the option on non-vector field types and document its storage and retrieval behavior in the Reference Guide. AI assistance (OpenAI Codex) was used for code review, test and fix proposals, documentation, and validation. # Tests - `DenseVectorRetrievalTest`: 160 passed, covering indexed/stored combinations, float/byte encodings, dimension-one vectors, nested children, multi-valued retrieval, and atomic updates from the index and transaction log. - `DenseVectorFieldTest`: 47 passed, 2 skipped by existing assumptions requiring the update log. - `./gradlew tidy -Pjavac.failOnWarnings=false`: passed. - `./gradlew check -x test -Pjavac.failOnWarnings=false`: passed, including Reference Guide generation and link checks. Both test suites were run with `-Pjavac.failOnWarnings=false`. The full repository test suite has not been run locally. # Checklist - [ ] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability. - [x] This PR references the existing Jira issue SOLR-18207. - [x] I have developed this patch against the `main` branch. - [ ] I have run `./gradlew check` (targeted suites and `check -x test` passed as listed above). - [x] I have added tests for my changes. - [x] I have added documentation for the Reference Guide. - [ ] I have added a changelog entry for my change. The changelog entry is still pending. -- 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]
