WSO2 Data Analytics Server is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.

All docs This doc
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
||
Skip to end of metadata
Go to start of metadata

WSO2 DAS has a distributed indexing engine which is built on top of Apache Lucene. Data is indexed and saved in the Data Access Layer of DAS in a store referred to as the Analytics File System. This section explains how indexing is used in WSO2 DAS.

Selecting data to be indexed

The following needs to be done when persisting data for interactive analytics

  • If you want to search for data by a specific attribute in an event stream, the Index Column check box should be selected for it.
  • If you want to carry out faceted extended searches using a specific attribute, the Is a Facet check box should be selected for it.

Indexing data

The following needs to be done in order to ensure that the data is indexed as required.

  • If you want to search for data by a specific attribute in an event stream, one or more events with values for the relevant attribute should be published.
  • If you want to carry out faceted extended searches using a specific attribute, the value for that attribute should be entered as follows.
    • The complete value should be within square brackets.
    • The different categories embedded within the value should be separated by commas.

The following table summarizes the indexing actions required for each search action.

 Persisting Data for AnalyticsPublishing Events

Search ActionDefine Attribute as Index Column?Define Attribute as Facet?Insert Attribute Value Within Square Brackets?Separate Sub Values of Attribute Value with Commas?Insert Sub Values Within Single Quotation Marks?
Searching by an attributeRequiredNot requiredNot requiredNot requiredRequired if the attribute value contains spaces.
Extracting sub categories

Required

RequiredRequiredRequiredRequired if the attribute value contains spaces.
Performing a drill down searchRequiredRequiredRequiredRequiredRequired if the attribute value contains spaces.
Searching within a value rangeRequiredNot requiredNot requiredNot requiredNot required

For detailed instructions to carry out different search actions using examples, see Searching for Data.

Removing index data

The index data stored in your system can be cleared using one of the following methods.

Index data cannot be deleted by clearing databases.

If you want to remove both event data and index data, see Configuring Data Persistence - Removing persisted data.

  • No labels