Index Cleanup
You can perform a query in All URIs Query to detect entries that were deleted from the database, so it can replicate these deletions in the index. Write this query to go through the primary keys of all the tables crawled by Exalead CloudView.
The following example shows a two table database to index with Exalead CloudView.
In
SQL table 2
,
the productid
field is a foreign key of the
productid
field stored in
SQL table 1
. The goal is to configure Exalead CloudView to
index one product for each language
langid
.
For example, the SQL query:
SELECT products.productid,attributes.langid FROM products.attributes WHERE products.productid = attributes.productid
This selects all the rows corresponding to the union of the two
primary keys
productid
and
attrid
. This query costs relatively little, and it
allows CloudView to quickly mirror deleted rows from the database.
The field names that make up these keys must be the same as the names returned by the main query.
Accumulation is not performed in this step. When a record belonging to an accumulated document is removed from the database, the document is left unchanged in the index.