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.

Note:<br />

If the source table has a field name identical to one of the default fields from the $TA table, you will receive<br />

an error message after the CREATE FULTTEXT INDEX statement informing you to rename the field of the<br />

source table. After you rename the corresponding field, you can execute the CREATE FULLTEXT INDEX<br />

statement again.<br />

11.1.4 Dropping Full Text Indexes<br />

If you want to delete a full text index that you manually created, for example, because it is referenced only rarely<br />

or preprocessing is too time-consuming, you can drop the full text index. For TEXT or SHORTTEXT full text<br />

indexes, you cannot drop the full text index; instead, you must delete the related column in the table.<br />

You also need to drop full text indexes when adding or removing index parameters. As parameters cannot be<br />

added to or removed from an existing full text index, if you want to change parameters, you must first drop the full<br />

text index and then create a new index with the new parameters.<br />

To drop a full text index, you use the DROP FULLTEXT INDEX statement:<br />

DROP FULLTEXT INDEX <br />

Related Links<br />

Note: Before you can drop a full text index, you must remove the relationship between the source table<br />

and any existing $TA tables (for text analysis). To do so, use the following statement:<br />

ALTER TABLE SCHEMA DROP <br />

The name constraint must be the same as originally used when adding the constraint. For more<br />

information, see Text Analysis.<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 />

Text Analysis [page 242]<br />

11.1.5 Altering Full Text Index Parameters<br />

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

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

● To alter the parameters of a full text index, use the ALTER FULLTEXT INDEX statement.<br />

You can only use this statement to alter the following parameters:<br />

○ Fuzzy search index<br />

○ Phrase index ratio<br />

Example syntax:<br />

ALTER FULLTEXT INDEX <br />

PHRASE INDEX RATIO <br />

FUZZY SEARCH INDEX <br />

● To alter any other parameter, you must replace the existing full text index as follows:<br />

246<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!