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.

option2=value2'))<br />

ORDER BY score DESC;<br />

The search options are specified as a comma-separated list of key-value pairs.<br />

Available Fuzzy Search Options<br />

Note that some data types in the table below are data-type combinations.<br />

● Text: SQL types TEXT and SHORTTEXT and any columns that have an additional full-text index<br />

● String: SQL types VARCHAR and NVARCHAR<br />

● Date: SQL type DATE<br />

Table 14: Available Fuzzy Search Options<br />

Name of Option Short<br />

Name<br />

textSearch ts fulltext,<br />

Range Defa<br />

ult<br />

compare<br />

fullte<br />

emptyScore es 0.0..1.0 not<br />

similarCalculatio<br />

nMode<br />

spellCheckFacto<br />

r<br />

abbreviationSimi<br />

larity<br />

bestMatchingTo<br />

kenWeight<br />

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

Enabling Search<br />

scm search,<br />

compare,<br />

symmetri<br />

csearch<br />

xt<br />

set<br />

comp<br />

are<br />

Applies to<br />

Types<br />

Text, String,<br />

Date<br />

Text, String,<br />

Date<br />

Description<br />

Switches between full-text search with TF/IDF<br />

score and duplicate search with fuzzy score.<br />

For more information, see Option textSearch<br />

[page 289].<br />

Defines how an empty and a non-empty value<br />

shall match.<br />

Text, String Defines how the score is calculated for a<br />

comparison of strings (or terms in a Text<br />

column).<br />

For more information, see Option<br />

similarCalculationMode [page 261] .<br />

scf 0.0..1.0 0.9 Text, String Sets the score for strings that get a fuzzy score of<br />

abs 0.0..1.0 0.0 Text<br />

bmtw 0.0..1.0 0 Text<br />

1.0 but are not fully equal.<br />

For more information, see Option<br />

spellCheckFactor [page 257].<br />

Activates abbreviation similarity and sets the<br />

score.<br />

For more information, see Option<br />

abbreviationSimilarity [page 287].<br />

Influences the score, shifts total score value<br />

between best token score values and root mean<br />

square of score values.<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!