28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

When you create a TEXT or SHORTTEXT column in a table, <strong>SAP</strong> <strong>HANA</strong> automatically creates a corresponding<br />

full text index. However, for columns of other data types, you must manually create and define any necessary<br />

full text indexes.<br />

Altering Full Text Index Parameters [page 246]<br />

You can alter a full text index after it is created. Altering an index includes changing the values of the<br />

parameters and altering the parameters by replacing the index.<br />

Synchronization [page 240]<br />

Full text indexes in a <strong>SAP</strong> <strong>HANA</strong> database must be created and updated in synchronization with the<br />

corresponding columns. This synchronization can be either synchronous or asynchronous.<br />

Full Text Index Parameters [page 247]<br />

The content and behavior of a full text index is configured by the use of both default and user-specified<br />

parameters. To view the configuration of a full text index, you use the SYS.FULLTEXT_INDEXES view.<br />

11.1.2 Synchronization<br />

Full text indexes in a <strong>SAP</strong> <strong>HANA</strong> database must be created and updated in synchronization with the<br />

corresponding columns. This synchronization can be either synchronous or asynchronous.<br />

Synchronous<br />

In <strong>SAP</strong> <strong>HANA</strong>, indexes of the type TEXT and SHORTTEXT(n) are synchronous. Text preprocessing is<br />

automatically performed when a column is created or new text is inserted and the full text index is then<br />

automatically updated. The system cannot transport any data to the proper database tables until text<br />

preprocessing is complete.<br />

Asynchronous<br />

If you manually create a full text index, you can specify whether the index is synchronous or asynchronous. By<br />

default, manually created indexes are asynchronous. Text preprocessing is not initially performed when the table<br />

or column is created or whenever new text is inserted. In this case, inserting the results of the text preprocessing<br />

and writing the original data do not occur at the same time. Therefore, the full text information may not be<br />

immediately available for searching.<br />

To handle asynchronous processing of text, <strong>SAP</strong> <strong>HANA</strong> uses queues.<br />

Queues<br />

The queue is a mechanism used to enable a full text index to operate asynchronously. This means that when you<br />

insert new entries into the column, the text is not made available in the column until it is preprocessed.<br />

When you insert new entries, the queue sends the text to the preprocessor for analysis. It returns a serialized<br />

instance of a DAF (document analysis format) object, which is then processed further by the <strong>HANA</strong> column store.<br />

The result is stored in the full text index.<br />

The <strong>SAP</strong> <strong>HANA</strong> queue manager automatically creates a queue when you create an asynchronous full text index or<br />

when the index server is started and the queue manager finds the information that a specific queue is needed. The<br />

queues are always created on the server on which the table is stored.<br />

Every entry in the queue has one of the following processing states:<br />

● New<br />

240<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Enabling Search

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!