You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by cp...@apache.org on 2025/09/15 13:31:01 UTC
(solr) branch main updated: correct prod[uct] function queries in Solr Ref Guide examples (#3655)
This is an automated email from the ASF dual-hosted git repository.
cpoerschke pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 57ebb85f5f3 correct prod[uct] function queries in Solr Ref Guide examples (#3655)
57ebb85f5f3 is described below
commit 57ebb85f5f30b0f70bbeaf2f57459297a6e699fa
Author: Christine Poerschke <cp...@apache.org>
AuthorDate: Mon Sep 15 14:30:55 2025 +0100
correct prod[uct] function queries in Solr Ref Guide examples (#3655)
* update common-query-parameters.adoc w.r.t. prod[uct] function query
* update json-facet-api.adoc w.r.t. prod[uct] function query
---
.../modules/query-guide/pages/common-query-parameters.adoc | 2 +-
solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/solr/solr-ref-guide/modules/query-guide/pages/common-query-parameters.adoc b/solr/solr-ref-guide/modules/query-guide/pages/common-query-parameters.adoc
index 0ecadd6163d..8809229fbb3 100644
--- a/solr/solr-ref-guide/modules/query-guide/pages/common-query-parameters.adoc
+++ b/solr/solr-ref-guide/modules/query-guide/pages/common-query-parameters.adoc
@@ -253,7 +253,7 @@ For example, `why_score` is the display name below:
[source,text]
----
-fl=id,sales_price:price,secret_sauce:prod(price,popularity),why_score:[explain style=nl]
+fl=id,sales_price:price,secret_sauce:product(price,popularity),why_score:[explain style=nl]
----
[source,json]
diff --git a/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc b/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc
index bc73fb5314d..b08efe0228f 100644
--- a/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc
+++ b/solr/solr-ref-guide/modules/query-guide/pages/json-facet-api.adoc
@@ -824,7 +824,7 @@ Only after the top candidate buckets have been refined, will the actual `sort` b
"prelim_sort": "sales_rank desc",
"sort": "prod_quality desc",
"facet": {
- "prod_quality": "avg(div(prod(rating,sales_rank),prod(num_returns,price)))"
+ "prod_quality": "avg(div(product(rating,sales_rank),product(num_returns,price)))"
"sales_rank": "sum(sales_rank)"
}
}