This is an automated email from the ASF dual-hosted git repository. janhoy pushed a commit to branch branch_9_7 in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9_7 by this push: new 114c16360d9 SOLR-17583: Bring back documentation for Adding Custom Expressions (#2903) (#2905) 114c16360d9 is described below commit 114c16360d985c1b474237d9e3fb88c9c78cc31b Author: cfeldmann <cfeldm...@users.noreply.github.com> AuthorDate: Thu Dec 12 03:37:55 2024 -0500 SOLR-17583: Bring back documentation for Adding Custom Expressions (#2903) (#2905) The section for adding Custom Expressions was removed in Solr 8.8. This change brings it back. Co-authored-by: Christine Feldmann <cfeldm...@proofpoint.com> --- .../modules/query-guide/pages/streaming-expressions.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/solr/solr-ref-guide/modules/query-guide/pages/streaming-expressions.adoc b/solr/solr-ref-guide/modules/query-guide/pages/streaming-expressions.adoc index a9a6bf564aa..bb4c0556cf8 100644 --- a/solr/solr-ref-guide/modules/query-guide/pages/streaming-expressions.adoc +++ b/solr/solr-ref-guide/modules/query-guide/pages/streaming-expressions.adoc @@ -100,6 +100,15 @@ In your JSON client you'll need to iterate each doc (tuple) and check for the EO Timeouts for Streaming Expressions can be configured with the `socketTimeout` and `connTimeout` startup parameters. +=== Adding Custom Expressions + +Creating your own custom expressions can be easily done by implementing the {solr-javadocs}/solrj-streaming/org/apache/solr/client/solrj/io/stream/expr/Expressible.html[Expressible] interface. To add a custom expression to the +list of known mappings for the `/stream` and `/graph` handlers, you just need to declare it as a plugin in `solrconfig.xml` via: + +[source,xml] +<expressible name="custom" class="org.example.CustomStreamingExpression"/> + + == Elements of the Language === Stream Sources