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.

Option textSearch<br />

The textSearch option is used to select the search algorithm for TEXT columns:<br />

● textSearch=fulltext (default value): A full-text search is done on a TEXT column. IDF calculation or<br />

specialOrRanking (depending on search flags) is used. This is the 'old' NewDB behavior.<br />

● textSearch=compare: A search similar to a Fuzzy Double search is done. Additional search options are<br />

enabled.<br />

Allowed search options and error handling<br />

Depending on the data type of a column and the type of the search (freestyle or attribute search) of a query entry,<br />

some of the searchOptions parameters are not allowed because they do not make sense.<br />

If the user sets an option that is not allowed, a SQL error is thrown and the SELECT aborts.<br />

textSearch=compar<br />

e<br />

FUZZY-Double-like<br />

search on TEXT<br />

attribute search and<br />

textSearch=<br />

compare and<br />

datatype= TEXT<br />

Full-text search on<br />

TEXT<br />

attribute search and<br />

textSearch= fulltext<br />

and datatype= TEXT<br />

<strong>Free</strong>style full-text<br />

search<br />

freestyle search and<br />

textSearch= fulltext<br />

YES n/a n/a NO<br />

textSearch=fulltext n/a YES n/a (default mode) NO<br />

similarCalculationM<br />

ode<br />

YES YES YES YES<br />

spellCheckFactor YES YES YES YES<br />

fuzzySimilarity > 0 YES YES YES YES<br />

fuzzySimilarity = 0 YES NO NO YES<br />

Search on types<br />

other than TEXT<br />

attribute search and<br />

datatype TEXT<br />

emptyScore YES NO NO YES (Only valid for<br />

abbreviationSimilarit<br />

y<br />

YES NO NO NO<br />

text, string and date<br />

types. Numeric<br />

types are not<br />

supported.)<br />

maxDateDistance NO NO YES YES (Only valid for<br />

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

Enabling Search<br />

date types. Other<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!