You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/04/25 06:20:14 UTC
[camel] 01/02: Added notes about docs and query in Camel-Solr
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit cbc9061559d2aa4bd9845cd7f25fa209e4d5e58b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Sun Apr 25 08:11:36 2021 +0200
Added notes about docs and query in Camel-Solr
---
.../camel-solr/src/main/docs/solr-component.adoc | 24 ++++------------------
1 file changed, 4 insertions(+), 20 deletions(-)
diff --git a/components/camel-solr/src/main/docs/solr-component.adoc b/components/camel-solr/src/main/docs/solr-component.adoc
index 29ced9e..ca81559 100644
--- a/components/camel-solr/src/main/docs/solr-component.adoc
+++ b/components/camel-solr/src/main/docs/solr-component.adoc
@@ -206,27 +206,11 @@ delete routes and then call the commit route.
== Querying Solr
-Currently, this component doesn't support querying data natively (may be
-added later). For now, you can query Solr using xref:http-component.adoc[HTTP] as
-follows:
+The components provides a producer operation to query Solr.
-[source,java]
---------------------------------------------------------------------------------
-//define the route to perform a basic query
-from("direct:query")
- .recipientList(simple("http://localhost:8983/solr/select/?q=${body}"))
- .convertBodyTo(String.class);
-...
-//query for an id of '1234' (url encoded)
-String responseXml = (String) template.requestBody("direct:query", "id%3A1234");
---------------------------------------------------------------------------------
-
-For more information, see these resources...
-
-http://lucene.apache.org/solr/tutorial.html#Querying+Data[Solr Query
-Tutorial]
-
-https://lucene.apache.org/solr/guide/8_4/the-standard-query-parser.html[Solr Query Syntax]
+For more information:
+
+https://solr.apache.org/guide/8_8/the-standard-query-parser.html[Solr Query Syntax]
include::{page-component-version}@camel-spring-boot::page$solr-starter.adoc[]