sql_select_statement
.
The column names will be used as Solr document field names; use the SQL “AS” keyword to rename column names as needed.
Column and table names should be treated as if they are case-insensitive, even though some databases allow use of mixed case names.
All Solr documents must have a unique key, which is the Fusion “id” field. Therefore, the results set must contain a column “id” which can be used as a unique key for the resulting document.
delta_sql_query
.
Delta queries select only primary key values, therefore, the query must use the primary key
and it must also have a “WHERE” clause which specifies a “last_modified” condition as follows:
nested_queries
.
A nested query is used in conjunction with the SQL query specified by the sql_select_statement
statement.
The dollar-sign character ’$’ specifies the primary key in the resultset retrieved
by the sql_select_statement
statement.
The following example shows the pair of query, nested query statements used to index list of tags assigned to documents: