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.

● Term mappings are language dependent.<br />

It is possible to define the language that a term mapping is valid for. You can also define term mappings for all<br />

languages by not setting a language.<br />

Use Cases<br />

Synonyms<br />

If you have a large database of company names, you might want to map the companies' legal forms.<br />

For example:<br />

Searching for You would also like to find With a weight of<br />

AG Aktiengesellschaft 1.0<br />

Ltd Limited 1.0<br />

As these are synonyms, the term mappings have to be added to the term-mapping table in both directions, as<br />

shown in the example below.<br />

Usually, synonym definitions get a weight of 1.0, because records found when the term mapping is applied are as<br />

good as records found with the original user input.<br />

Hypernyms, Hyponyms<br />

If you search with a hypernym, you might also find other documents related to this topic.<br />

For example:<br />

Searching for You would also like to find With a weight of<br />

car VW Golf 0.8<br />

As these are not synonyms, and a search with 'VW Golf' shall not return all documents about cars, the term<br />

mapping is added to the term-mapping table in this direction only.<br />

Format of the Term-Mapping Table<br />

Column Name Type Primary Key Description Comment<br />

MAPPING_ID VARCHAR(32) x Primary key For example, a GUID<br />

LIST_ID VARCHAR(32) Term-mapping list ID Used to group term<br />

LANGUAGE_CODE CHAR(2) Language code<br />

296<br />

P U B L I C<br />

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

(ISO2)<br />

mappings<br />

NULL: term mapping<br />

is valid for all<br />

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