SAP HANA SPS09 - Full-text Search

13
1 © 2014 SAP SE or an SAP affiliate company. All rights reserved. SAP HANA SPS 09 - What’s New? Full-text Search SAP HANA Product Management November, 2014 (Delta from SPS 08 to SPS 09)

description

See what's new in SAP HANA SPS09 full-text search.

Transcript of SAP HANA SPS09 - Full-text Search

Page 1: SAP HANA SPS09 - Full-text Search

1 © 2014 SAP SE or an SAP affiliate company. All rights reserved.

SAP HANA SPS 09 - What’s New? Full-text Search

SAP HANA Product Management November, 2014

(Delta from SPS 08 to SPS 09)

Page 2: SAP HANA SPS09 - Full-text Search

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 2 Public

Agenda

Integration into Core Data Services (CDS)

Full-text indexing

Search models

Integration into ODATA

Full-text search

SAP HANA InA File Loader

Additional Enhancements

Page 3: SAP HANA SPS09 - Full-text Search

Full-text Search

Page 4: SAP HANA SPS09 - Full-text Search

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 4 Public

Full-text Index, Search Models, and Data Access

Table Table

Attribute View w/ search properties

SQL

HANA Search UI built e.g. with Info

Access (InA) toolkit for

HTML5, running

natively on SAP HANA

SInA API

CDS View w/ search annotations

OData

HANA App Application running

natively on

SAP HANA, built with

SAP UI5

Defining a full-text index in CDS

Defining a search view in CDS

Full-text searching in ODATA

Page 5: SAP HANA SPS09 - Full-text Search

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 5 Public

Full-text Search – What’s New in SPS 09? CDS Full-text Index

Define a full-text index in a CDS (Core Data Services) documents

by using new CDS annotations.

The "SearchIndex" annotations of a CDS element are similar to the

parameters used in a SQL CREATE FULLTEXT INDEX statement

and include settings to control

• Full-text indexing , e.g. define the name of the full-text index

• Fuzzy indexing, e.g. to speed up fuzzy searches on special data

like postcodes and housenumbers

• Text analysis, e.g. define language detection behavior and

dictionaries and rules used to process the data

Full-text index is now fully transportable in a system landscape.

@Catalog.tableType: #COLUMN

entity myTable {

key ID : Integer NOT NULL;

@SearchIndex.text: { enabled: true, storeOriginalContent: true, async: true}

TITLE : String(5000);

@SearchIndex.text : { enabled: true, async: true,

textAnalysis : {

mode: #EXTENDED,

languageDetection: ['en'],

configurationID : 'package::myconfig.hdbtextconfig'

}

}

ABSTRACT : LargeString;

CATEGORY : String(100);

};

Page 6: SAP HANA SPS09 - Full-text Search

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 6 Public

Full-text Search – What’s New in SPS 09? CDS Search View

CDS annotations are provided to define search models and

advanced functions which are available when querying a search

model via ODATA.

The "Search" and "EnterpriseSearch" annotations of a CDS view

element are similar to the search properties available in Attribute

Views and include settings to define

• Columns searched in by default

• Relevance ranking

• Fuzzy search

• Columns to be exposed as so-called "facets"

• Columns for which snippets and search-term highlighting are

provided by default

@Search.searchable: true

define view myView as select from "myPackage::myTable" as T1 {

@EnterpriseSearch.key : true

T1.ID,

@Search.defaultSearchElement: true

@Search.ranking: #HIGH

@Search.fuzzinessThreshold : 0.8

@Search.termMappingDictionary : 'myPackage::TERMMAPPINGS'

@Search.termMappingListID : ['default']

@EnterpriseSearch.highlighted.enabled : true

T1.TITLE,

@Search.defaultSearchElement: true

@Search.ranking: #MEDIUM

@EnterpriseSearch.snippets.enabled : true

T1.ABSTRACT,

@EnterpriseSearch.usageMode: [ #AUTO_FACET ]

T1.CATEGORY

};

Page 7: SAP HANA SPS09 - Full-text Search

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 7 Public

Full-text Search – What’s New in SPS 09? Full-text Search with ODATA

It is now possible to expose search-enabled CDS views in ODATA and execute full-text

searches via ODATA.

Besides the standard ODATA parameters, two search-specific query options are available.

• "search"

This option is used to define the full-text search query, using the same syntax as available in the

SQL CONTAINS() predicate.

• "facets"

This option is used to define if "facets" which are specified in a CDS search-able view should be

included in the ODATA response.

Page 8: SAP HANA SPS09 - Full-text Search

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 8 Public

Full-text Search – What’s New in SPS 09? SAP HANA InA File Loader

The SAP HANA InA File Loader component has been improved.

• Support of SSL, HTTP proxies and HTTP authentication through HTTP destinations

• Administration UI

• Enhanced monitoring functions

• Simplified security setup and maintenance

Page 9: SAP HANA SPS09 - Full-text Search

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 9 Public

Full-text Search – What’s New in SPS 09? Additional Enhancements

New monitoring function for the full-text indexing process.

SELECT INDEXING_STATUS("myColumn") FROM "myTable"; information on indexing status per document

SELECT INDEXING_ERROR_CODE("myColumn"), INDEXING_ERROR_MESSAGE("myColumn") FROM "myTable"; information on indexing errors per document

A plain text representation of binary file formats can be retrieved via SQL.

SELECT PLAINTEXT("myBinaryContent") FROM "myTable";

Page 10: SAP HANA SPS09 - Full-text Search

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 10 Public

Disclaimer

This presentation outlines our general product direction and should not be relied on in making

a purchase decision. This presentation is not subject to your license agreement or any other

agreement with SAP.

SAP has no obligation to pursue any course of business outlined in this presentation or to

develop or release any functionality mentioned in this presentation. This presentation and

SAP’s strategy and possible future developments are subject to change and may be changed

by SAP at any time for any reason without notice.

This document is provided without a warranty of any kind, either express or implied, including

but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or

non-infringement. SAP assumes no responsibility for errors or omissions in this document,

except if such damages were caused by SAP intentionally or grossly negligent.

Page 11: SAP HANA SPS09 - Full-text Search

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 11 Public

How to find SAP HANA documentation on this topic?

• In addition to this learning material, you can find SAP HANA

platform documentation on SAP Help Portal knowledge center at

http://help.sap.com/hana_platform.

• The knowledge centers are structured according to the product

lifecycle: installation, security, administration, development:

SAP HANA Options

SAP HANA Advanced Data Processing

SAP HANA Dynamic Tiering

SAP HANA Enterprise Information Management

SAP HANA Predictive

SAP HANA Real-Time Replication

SAP HANA Smart Data Streaming

SAP HANA Spatial

• Documentation sets for SAP HANA options can be found at

http://help.sap.com/hana_options:

SAP HANA Platform SPS

What’s New – Release Notes

Installation

Administration

Development

References

Page 12: SAP HANA SPS09 - Full-text Search

© 2014 SAP SE or an SAP affiliate company. All rights reserved.

Thank you

Contact information

Markus Fath

SAP HANA Product Management

[email protected]

Page 13: SAP HANA SPS09 - Full-text Search

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 13 Public

© 2014 SAP SE or an SAP affiliate company. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company.

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate

company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.

Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.

National product specifications may vary.

These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its

affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE or SAP affiliate company products and services

are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an

additional warranty.

In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or

release any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future

developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for

any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-

looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place

undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.