adamjq opened a new pull request, #4532: URL: https://github.com/apache/solr/pull/4532
# Description The Dense Vector Search page in the Solr Ref Guide currently has a section titled `Usage in Re-Ranking Query`. However, it only contains a single example of re-ranking with the KNN query parser which has an important caveat that this initiates a second pass full KNN query. This PR adds documentation for the more efficient re-ranking feature that rerank subsets of documents by direct vector comparisons with the [vectorSimilarity Function](https://solr.apache.org/guide/solr/latest/query-guide/function-queries.html#vectorsimilarity-function) , with some notes about motivations and tradeoffs. # Solution - Moves indentation level of `Usage in Re-Ranking Query` in Dense Vector Search ref guide - Adds examples of how to use `{!func}vectorSimilarity` in a re-rank query - Adds note about reranking with Dense Vector Fields in Query Re-Ranking page ## Before <img width="1486" height="1066" alt="solr_dense_vector_ref_guide_before" src="https://github.com/user-attachments/assets/edee7996-3eac-4117-833b-23597ec468ec" /> ## After <img width="1490" height="1119" alt="solr_dense_vector_ref_guide_changes" src="https://github.com/user-attachments/assets/3284b706-272d-46cb-ad65-e3ebf00f861f" /> # Checklist Please review the following and check all that apply: - [X] I have reviewed the guidelines for [How to Contribute](https://github.com/apache/solr/blob/main/CONTRIBUTING.md) and my code conforms to the standards described there to the best of my ability. - [ ] I have created a Jira issue and added the issue ID to my pull request title. - [X] I have given Solr maintainers [access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to contribute to my PR branch. (optional but recommended, not available for branches on forks living under an organisation) - [X] I have developed this patch against the `main` branch. - [X] I have run `./gradlew check`. - [ ] I have added tests for my changes. - [X] I have added documentation for the [Reference Guide](https://github.com/apache/solr/tree/main/solr/solr-ref-guide) - [ ] I have added a [changelog entry](https://github.com/apache/solr/blob/main/dev-docs/changelog.adoc) for my change -- 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]
