You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2024/06/20 18:10:13 UTC

(solr) branch SOLR-17335 updated (7fca0be147e -> aeaa21bbae0)

This is an automated email from the ASF dual-hosted git repository.

hossman pushed a change to branch SOLR-17335
in repository https://gitbox.apache.org/repos/asf/solr.git


    from 7fca0be147e Tidy
     new 71983405239 Fix wording and missing renames
     add 844cde9a4f0 SOLR-17269: Do not publish synthetic solr core (of Coordinator node) to ZK (#2438)
     add fc0d84afaa8 SOLR-17331: More optimal placements with OrderedNodePlacementPlugin (#2515)
     add 0c2b1a6dd61 SOLR-17255: Fix bugs in SolrParams.toLocalParamsString()
     add 4a12f8a4b58 fix MoveReplicaHdfsFailoverTest after SOLR-16962 (#2525)
     add 0a6f79dcda3 Remove 'IndexUpgraderTool' page from ref-guide (#2500)
     new aeaa21bbae0 Merge remote-tracking branch 'origin/main' into SOLR-17335

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 solr/CHANGES.txt                                   |   6 +
 .../org/apache/solr/cloud/ZkConfigSetService.java  |  39 +---
 .../plugins/OrderedNodePlacementPlugin.java        |  87 ++++----
 .../src/java/org/apache/solr/core/SolrCore.java    |   2 +-
 .../org/apache/solr/core/SyntheticSolrCore.java    |  75 +++++++
 .../solr/servlet/CoordinatorHttpSolrCall.java      | 246 ++++++---------------
 .../org/apache/solr/cloud/MigrateReplicasTest.java |   8 +-
 .../plugins/MinimizeCoresPlacementFactoryTest.java |   2 +-
 ...ryTest.java => SimplePlacementFactoryTest.java} | 173 ++++++++-------
 .../apache/solr/search/TestCoordinatorRole.java    |  42 ++--
 .../hdfs/cloud/MoveReplicaHdfsFailoverTest.java    |   1 -
 .../modules/deployment-guide/deployment-nav.adoc   |   1 -
 .../deployment-guide/pages/indexupgrader-tool.adoc |  53 -----
 .../pages/upgrading-a-solr-cluster.adoc            |   6 +-
 .../query-guide/pages/dense-vector-search.adoc     |  20 +-
 .../pages/major-changes-in-solr-7.adoc             |   1 -
 .../apache/solr/client/solrj/util/ClientUtils.java |  10 +-
 .../org/apache/solr/common/params/SolrParams.java  |  13 +-
 .../apache/solr/common/params/SolrParamTest.java   |  42 ++++
 19 files changed, 390 insertions(+), 437 deletions(-)
 create mode 100644 solr/core/src/java/org/apache/solr/core/SyntheticSolrCore.java
 copy solr/core/src/test/org/apache/solr/cluster/placement/plugins/{MinimizeCoresPlacementFactoryTest.java => SimplePlacementFactoryTest.java} (76%)
 delete mode 100644 solr/solr-ref-guide/modules/deployment-guide/pages/indexupgrader-tool.adoc


(solr) 01/02: Fix wording and missing renames

Posted by ho...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hossman pushed a commit to branch SOLR-17335
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 71983405239fc4b8740e73f9384b3ce4240cdc69
Author: Chris Hostetter <ho...@apache.org>
AuthorDate: Thu Jun 20 10:33:04 2024 -0700

    Fix wording and missing renames
---
 .../query-guide/pages/dense-vector-search.adoc       | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc b/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc
index d4ad9756176..35f5f094c68 100644
--- a/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc
+++ b/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc
@@ -238,9 +238,9 @@ client.add(Arrays.asList(d1, d2));
 
 == Query Time
 
-Apache Solr provides two query parsers that work with dense vector fields, that each support different ways of matching documents based on vector similarity: The `knn` query parser, and the `vecSim` query parser.
+Apache Solr provides two query parsers that work with dense vector fields, that each support different ways of matching documents based on vector similarity: The `knn` query parser, and the `vectorSimilarity` query parser.
 
-Both parsers return scores for retrieved documents that is the approximate distance to the target vector (defined by the similarityFunction configured at indexing time) and both support "Pre-Filtering" the document graph to reduce the number of candidate vectors evaluated (with out needing to compute their vector similarity distances).
+Both parsers return scores for retrieved documents that are the approximate distance to the target vector (defined by the similarityFunction configured at indexing time) and both support "Pre-Filtering" the document graph to reduce the number of candidate vectors evaluated (with out needing to compute their vector similarity distances).
 
 Common parameters for both query parsers are:
 
@@ -304,9 +304,9 @@ Here's an example of a simple `knn` search:
 
 The search results retrieved are the k=10 nearest documents to the vector in input `[1.0, 2.0, 3.0, 4.0]`, ranked by the `similarityFunction` configured at indexing time.
 
-=== vecSim Query Parser
+=== vectorSimilarity Query Parser
 
-The `vecSim` vector similarity query parser matches documents whose similarity with the target vector is a above a minimum threshold.
+The `vectorSimilarity` vector similarity query parser matches documents whose similarity with the target vector is a above a minimum threshold.
 
 In addition to the common parameters described above, it takes the following parameters:
 
@@ -329,10 +329,10 @@ Minimum similarity threshold of nodes in the graph to be returned as matches
 +
 Minimum similarity of nodes in the graph to continue traversal of their neighbors
 
-Here's an example of a simple `vecSim` search:
+Here's an example of a simple `vectorSimilarity` search:
 
 [source,text]
-?q={!vecSim f=vector minReturn=0.7}[1.0, 2.0, 3.0, 4.0]
+?q={!vectorSimilarity f=vector minReturn=0.7}[1.0, 2.0, 3.0, 4.0]
 
 The search results retrieved are all documents whose similarity with the input vector `[1.0, 2.0, 3.0, 4.0]` is at least `0.7` based on the `similarityFunction` configured at indexing time
 
@@ -346,9 +346,9 @@ Pre-Filtering the set of candidate documents considered when walking the graph c
 The `preFilter` parameter can be specified explicitly to reduce the number of candidate documents evaluated for the distance calculation:
 
 [source,text]
-?q={!vecSim f=vector minReturn=0.7 preFilter=inStock:true}[1.0, 2.0, 3.0, 4.0]
+?q={!vectorSimilarity f=vector minReturn=0.7 preFilter=inStock:true}[1.0, 2.0, 3.0, 4.0]
 
-In the above example, only documents matching the Pre-Filter `inStock:true` will be candidates for consideration when evaluating the `vecSim` search against the specified vector.
+In the above example, only documents matching the Pre-Filter `inStock:true` will be candidates for consideration when evaluating the `vectorSimilarity` search against the specified vector.
 
 The `preFilter` parameter may be blank (ex: `preFilter=""`) to indicate that no Pre-Filtering should be performed; or it may be multi-valued -- either through repetition, or via duplicated xref:local-params.adoc#parameter-dereferencing[Parameter References].
 
@@ -366,7 +366,7 @@ These two examples are equivalent:
 
 ==== Implicit Pre-Filtering
 
-While the `preFilter` parameter may be explicitly specified on *_any_* usage of the `knn` or `vecSim` query parsers, the default Pre-Filtering behavior (when no `preFilter` parameter is specified) will vary based on how the query parser is used:
+While the `preFilter` parameter may be explicitly specified on *_any_* usage of the `knn` or `vectorSimilarity` query parsers, the default Pre-Filtering behavior (when no `preFilter` parameter is specified) will vary based on how the query parser is used:
 
 * When used as the main `q` param: `fq` filters in the request (that are not xref:common-query-parameters.adoc#cache-local-parameter[Solr Post Filters]) will be combined to form an implicit Graph Pre-Filter.
 ** This default behavior optimizes the number of vector distance calculations considered, eliminating documents that would eventually be excluded by an `fq` filter anyway.
@@ -379,7 +379,7 @@ The example request below shows two usages of vector query parsers that will get
 
 [source,text]
 ----
-?q=(color_str:red OR {!vecSim f=color_vector minReturn=0.7 v="[1.0, 2.0, 3.0, 4.0]"})
+?q=(color_str:red OR {!vectorSimilarity f=color_vector minReturn=0.7 v="[1.0, 2.0, 3.0, 4.0]"})
 &fq={!knn f=title_vector topK=10}[9.0, 8.0, 7.0, 6.0]
 &fq=inStock:true
 ----


(solr) 02/02: Merge remote-tracking branch 'origin/main' into SOLR-17335

Posted by ho...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hossman pushed a commit to branch SOLR-17335
in repository https://gitbox.apache.org/repos/asf/solr.git

commit aeaa21bbae03ff6c5fb7efdd29262682f35fce31
Merge: 71983405239 0a6f79dcda3
Author: Chris Hostetter <ho...@apache.org>
AuthorDate: Thu Jun 20 10:33:11 2024 -0700

    Merge remote-tracking branch 'origin/main' into SOLR-17335

 solr/CHANGES.txt                                   |   6 +
 .../org/apache/solr/cloud/ZkConfigSetService.java  |  39 +---
 .../plugins/OrderedNodePlacementPlugin.java        |  87 ++++----
 .../src/java/org/apache/solr/core/SolrCore.java    |   2 +-
 .../org/apache/solr/core/SyntheticSolrCore.java    |  75 +++++++
 .../solr/servlet/CoordinatorHttpSolrCall.java      | 246 ++++++---------------
 .../org/apache/solr/cloud/MigrateReplicasTest.java |   8 +-
 .../plugins/MinimizeCoresPlacementFactoryTest.java |   2 +-
 ...ryTest.java => SimplePlacementFactoryTest.java} | 173 ++++++++-------
 .../apache/solr/search/TestCoordinatorRole.java    |  42 ++--
 .../hdfs/cloud/MoveReplicaHdfsFailoverTest.java    |   1 -
 .../modules/deployment-guide/deployment-nav.adoc   |   1 -
 .../deployment-guide/pages/indexupgrader-tool.adoc |  53 -----
 .../pages/upgrading-a-solr-cluster.adoc            |   6 +-
 .../pages/major-changes-in-solr-7.adoc             |   1 -
 .../apache/solr/client/solrj/util/ClientUtils.java |  10 +-
 .../org/apache/solr/common/params/SolrParams.java  |  13 +-
 .../apache/solr/common/params/SolrParamTest.java   |  42 ++++
 18 files changed, 380 insertions(+), 427 deletions(-)