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.

Parameter similarCalculationMode<br />

The search option 'similarCalculationMode' with options 'search' and 'symmetricsearch' is available for postcode<br />

columns.<br />

When using the search option 'similarCalculationMode', a postcode search with a postcode prefix will find all<br />

addresses in a given area.<br />

● A search with '71' returns all postcodes beginning with '71'.<br />

● A search with '1234' returns all postcodes starting with a sequence similar to '1234' and, with a lower score, all<br />

postcodes that contain a '1234'.<br />

Parameter spellCheckFactor<br />

Two postcodes may be considered identical by the fuzzy string comparison, but may still be different. In this case,<br />

the value of the parameter 'spellCheckFactor' is applied and the score is multiplied by the spellCheckFactor.<br />

Examples for non-equal postcodes that get a score of 1.0 are:<br />

● '123456' and '12 34 56'<br />

● '7070717' and '7071707'<br />

The default value of the search option spellCheckFactor is 0.9. To disable this feature, set 'spellCheckFactor=1.0'.<br />

Example<br />

The following example uses a spellCheckFactor of 1.0, which is not the default value.<br />

Postcode 1 Postcode 2 Score Remarks<br />

71691 71691 1.0<br />

71691 71 691 1.0<br />

71691 81691 0.51 Highest weight on the<br />

first digit<br />

71691 72691 0.7 High weight on the<br />

second digit<br />

71691 71692 0.96 Lower weight on all<br />

other digits<br />

71691 D-71691 0.96 Country code missing<br />

in one column<br />

D-71691 A-71691 0.96 Country codes are<br />

71691 D-71692 0.92<br />

D-71691 A-71692 0.92<br />

278<br />

P U B L I C<br />

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

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