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.

● For text columns, the search term must match at least one of the tokenized terms to return a column entry as<br />

a match.<br />

● For string columns, the search term must match the entire string to return a column entry as a match.<br />

Note: For more flexibility in a search query, you can use the supported wildcards % and *. Wildcards are<br />

supported for both text and string columns.<br />

You can perform an exact search by using the CONTAINS predicate with the EXACT option in the WHERE clause<br />

of a SELECT statement. The exact search is the default search type. If you do not specify any search type in the<br />

search query, an exact search will be executed automatically.<br />

SELECT * FROM <br />

WHERE CONTAINS (, , EXACT)<br />

SELECT * FROM <br />

WHERE CONTAINS (, )<br />

--- Exact search will be executed implicitly.<br />

SELECT * FROM <br />

WHERE CONTAINS (, '"cats and dogs"')<br />

--- Phrase search.<br />

11.2.3 LINGUISTIC Search<br />

A linguistic search finds all words that have the same word stem as the search term. It also finds all words for<br />

which the search term is the word stem. In the SELECT statement of the full text search query, you can specify<br />

the LINGUISTIC search type.<br />

When you execute a linguistic search, the system has to determine the stems of the searched terms. It will look up<br />

the stems in the stem dictionary. The hits in the stem dictionary point to all words in the word dictionary that have<br />

this stem<br />

You can call the linguistic search by using the CONTAINS predicate with the LINGUISTIC option in the WHERE<br />

clause of a SELECT statement.<br />

A linguistic search for produced will also find producing and produce.<br />

Limitations<br />

SELECT * FROM <br />

WHERE CONTAINS (

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

Saved successfully!

Ooh no, something went wrong!