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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

)<br />

content SHORTTEXT(100)<br />

Changes to SHORTTEXT(n) Indexes<br />

FAST PREPROCESS OFF<br />

SEARCH ONLY ON<br />

SHORTTEXT(n) full text indexes are automatically generated and you do not specify names for them; therefore,<br />

you cannot directly manipulate them. However, when you create, alter, or drop a table column, the same change<br />

is automatically applied to the index for that column.<br />

When using the ALTER TABLE statement to affect changes on the index, you can only alter the following<br />

parameters:<br />

● PHRASE INDEX RATIO<br />

● FUZZY SEARCH INDEX<br />

Note: You cannot change the length of the original text and you cannot convert SHORTTEXT(n) to another<br />

data type.<br />

Manually Created Indexes<br />

If the tables in your <strong>SAP</strong> <strong>HANA</strong> database contain extensive columns that are frequently queried but do not have<br />

automatically generated full text indexes, meaning they are not TEXT or SHORTTEXT(n) type columns, you can<br />

improve search performance by manually creating full text indexes.<br />

To manually create a full text index, the column must have one of the following SQL data types:<br />

● VARCHAR<br />

● NVARCHAR<br />

● ALPHANUM<br />

● CLOB<br />

● NCLOB<br />

● BLOB<br />

When you manually create an index, the system attaches a hidden column to the specified column. This hidden<br />

column contains textual data that <strong>SAP</strong> <strong>HANA</strong> Preprocessor has extracted from the text in the source column. The<br />

original text in the source column remains unchanged. Search queries are then performed on the hidden column;<br />

however, they always return the original text. Depending on the data type that is assigned to a source column,<br />

string search may be possible.<br />

You can manually create an index directly after creating a table or you can create the index later. Once you create<br />

an index for a column, the system automatically processes any text that is inserted into this column and adds the<br />

processed text to the index. Processing for manually created indexes can be performed synchronously or<br />

asynchronously.<br />

You can specify different parameters when you create a full text index. If parameter changes are required later,<br />

you can change the values for the existing index directly or re-create the index with the parameters that you want<br />

to change.<br />

Related Links<br />

Creating Full Text Indexes [page 235]<br />

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

Enabling Search<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!