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.

0.77<br />

)<br />

Limitations<br />

The TEXT data type has the following search-relevant limitations:<br />

● SQL string searches are not supported.<br />

● The SQL functions CONCAT and JOIN are not supported.<br />

● TEXT columns cannot be converted to other data types.<br />

● Text analysis is not supported.<br />

For TEXT columns, <strong>SAP</strong> <strong>HANA</strong> does not support the following SQL expressions:<br />

● HAVING<br />

● WHERE with strings or non-alphanumeric characters<br />

● ORDER BY<br />

● GROUP BY<br />

● Aggregate expressions (COUNT, MIN, MAX, etc.)<br />

● JOIN ON<br />

Changes to TEXT Indexes<br />

TEXT full text indexes are automatically generated and you do not specify names for them; therefore, you cannot<br />

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

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

By using the ALTER TABLE statement to affect changes on the index, you can alter the following parameters:<br />

● PHRASE INDEX RATIO<br />

● FUZZY SEARCH INDEX<br />

SHORTTEXT(n) Indexes<br />

If the tables in your <strong>SAP</strong> <strong>HANA</strong> database contain columns with text strings that are relatively short in length, you<br />

can define those columns with the SHORTTEXT(n) data type. The SHORTTEXT(n) data type enables both SQL<br />

string search and full text search capabilities.<br />

<strong>SAP</strong> <strong>HANA</strong> preprocesses the text in the column and stores that preprocessed text as a full text index in a hidden<br />

column attached to the original column. When queried, the text in the full text index returns with the NVARCHAR<br />

data type. The original text is still available; however, search queries are performed, by default, on the text in the<br />

index.<br />

When you create a column table and define a column with the data type SHORTTEXT(n), as in the following<br />

example, a full text index is automatically generated. Whenever new entries are then inserted in the column, the<br />

full text index is automatically and synchronously updated.<br />

238<br />

CREATE COLUMN TABLE <br />

(<br />

k int primary key,<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!