ApacheSolrQueryActivity
Use this activity to query the documents and data on your Apache Solr server.
Input Settings
Enter your Apache Solr queries in the Input Settings tab. Queries could be parameterized queries. Parameters which become input fields in the Input tab are marked by the prefix "?". Input fields are available in the Input tab for mapping into values from the previous activities of the flow.
Field | Description |
---|---|
Query | The
Apache Solr search SQL query to query the documents and data on
Apache Solr server. Only
Apache Solr standard query syntax is supported. Parameterized queries can be entered. For example:
q=cat:electronics; The above example, queries the Apache Solr server on the specified core to find documents that belong to the specified cat or category (as defined in the schema). In this example the cat is electronics. The following are examples or parameterized queries q=cat:?cat; Note that the ?cat literal is the parameterized argument in the example query above. cat will be available in the Input tab where it can be mapped to the fields from the previous activities. Other examples of parameterized queries are as follows: select?facet.field=author&facet=on&fl=facet_fields&q=*:*; q=*:*&facet.field=?facetfield&facet.mincount=?facetcount&fa cet=on&rows=0; |
Input
The Input tab displays the fields parsed from query which you entered in Input Setting tab. You can input the values for each element by hard coding the value or mapping the value to an element from the output schema of a previous activity in the flow. See the section on "Using the Mapper" in the TIBCO Flogo® Enterprise User's Guide for details on how to map elements.
Output Settings
This tab is used for defining the response schema for the query output data.