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.

1. A house number is compared to a house number range and the numeric value of the house number lies within<br />

the range.<br />

2. Two house number ranges are compared and the ranges overlap.<br />

Examples:<br />

String 1 String 2 Score<br />

10 8-12 0.7<br />

10a 8-12 0.7<br />

9 8-12 0.7<br />

8-12 10-14 0.7<br />

8-12a 10b-14 0.7<br />

Last Rule - House Numbers Are Not Equal<br />

Examples:<br />

String 1 String 2 Score<br />

5 6 0.0<br />

8a 9a 0.0<br />

6 8-12 0.0<br />

8-10 12-14 0.0<br />

House Number Columns and Other String Search Options<br />

The following search options available for string column types are not valid for house number columns.<br />

SpellCheckFactor<br />

When comparing house numbers, the search option 'spellCheckFactor' is ignored. So for house numbers, the<br />

results are always the same as with 'spellCheckFactor=1.0'.<br />

SimilarCalculationMode<br />

When comparing house numbers, the search option 'similarCalculationMode' is ignored and has no effect on the<br />

search result. Both options are ignored, no error is returned when any of the options is given.<br />

SQL Syntax<br />

To enable the search for house numbers on an (N)VARCHAR column, the FUZZY SEARCH MODE clause is used in<br />

a CREATE TABLE statement.<br />

CREATE COLUMN TABLE tab<br />

(<br />

id INTEGER PRIMARY KEY,<br />

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