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.

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.1 Full Text Index Types<br />

<strong>SAP</strong> <strong>HANA</strong> automatically creates full text indexes for columns of type TEXT and SHORTTEXT(n). For other<br />

column types, you must manually create any required full text indexes.<br />

Characteristic TEXT SHORTTEXT (n) Manually Created<br />

SQL data type exposed to<br />

user<br />

Data returned by SELECT Original data (returns<br />

normalized data if the<br />

SEARCH_ONLY parameter<br />

is ON)<br />

NCLOB NVARCHAR(n) Original data type<br />

Original data Original data<br />

SQL insertion mode SYNC SYNC SYNC or ASYNC<br />

Drop index Yes (via drop column) Yes (via drop column) Yes<br />

Text search via CONTAINS Yes Yes Yes<br />

SQL string search Not possible Possible Depends on underlying<br />

data type<br />

Change parameters of full<br />

text index<br />

Partially Partially All (with rebuild)<br />

Rebuild index No No Yes<br />

Base type can be changed No No No (no dependency<br />

between base-column and<br />

index available)<br />

TEXT Indexes<br />

In a <strong>SAP</strong> <strong>HANA</strong> database, when you create a table that contains large text documents, you can define the columns<br />

with the TEXT data type. This data type allows you to query large text documents and present content excerpts in<br />

search hit lists. You can also reconstruct the document and display it in its original formatting.<br />

When you create a TEXT column and insert content, <strong>SAP</strong> <strong>HANA</strong> extracts and processes the text from the original<br />

document and then automatically generates a full text index for the column. To create this full text index, <strong>SAP</strong><br />

<strong>HANA</strong> replaces the original data in the column with the processed text. This text is then returned with the data<br />

type NCLOB. The original data is no longer available.<br />

If you insert new entries in the TEXT column, the full text index is automatically and synchronously updated.<br />

CREATE COLUMN TABLE <br />

(<br />

k int primary key,<br />

content TEXT<br />

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

Enabling Search<br />

FAST PREPROCESS OFF<br />

PHRASE INDEX RATIO<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!