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.

Along with the full text index, you can also trigger a text analysis that extracts entities, such as dates or people,<br />

from the text and, therefore, enriches the set of attributes.<br />

Related Links<br />

Creating Full Text Indexes [page 235]<br />

When you create a TEXT or SHORTTEXT column in a table, <strong>SAP</strong> <strong>HANA</strong> automatically creates a corresponding<br />

full text index. However, for columns of other data types, you must manually create and define any necessary<br />

full text indexes.<br />

Text Analysis [page 242]<br />

Checking the Settings in <strong>SAP</strong> <strong>HANA</strong> Studio<br />

Technical search in <strong>SAP</strong> <strong>HANA</strong> may not be enabled. To check if it is enabled, proceed as follows:<br />

1. In the <strong>SAP</strong> <strong>HANA</strong> studio menu, choose Window Preferences Modeler Search Options .<br />

2. Check if the Enable Search Attributes option is selected. If not, select it and choose Apply and OK.<br />

Note: You must make this setting in every <strong>SAP</strong> <strong>HANA</strong> studio that you use to model views for search.<br />

Modeling Your Search Content<br />

For each app user, you have created a named database user with the following authorizations:<br />

● Object privileges: SELECT on database schemas and .<br />

● Analytic privileges: For and for the attribute view you want to visualize in the app.<br />

In the <strong>SAP</strong> <strong>HANA</strong> modeler, create an attribute view of type standard using the tables that you want to enable for<br />

the search. Create joins and add the attributes you want to use for searching and displaying.<br />

Note: You can also join additional attributes derived from the text analysis.<br />

To enable certain attributes for the search, proceed as follows:<br />

1. In the Output view, select the attributes.<br />

Note: The searchable attributes must not be calculated attributes nor have lower case letters in their<br />

names.<br />

2. In the lower area of the Properties tab, select the Information Access category.<br />

3. Set the <strong>Free</strong>style Search property to true.<br />

In the Information Access category, you can make additional search-specific settings.<br />

The Weights for Ranking setting (between 0.0 and 1.0, default 0.5) influences the ranking of items in the results<br />

list. The higher the weight of the attribute, the higher up in the list an item with a hit in this attribute is positioned.<br />

The Fuzziness Threshold setting (between 0.0 and 1.0, default 0.8) defines the grade of error tolerance for a<br />

search on this attribute. The higher the threshold, the more exact the search terms must hit the text to produce a<br />

result.<br />

Note: Do not forget to activate the attribute view.<br />

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

Enabling Search<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!