Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 831

Enterprise Searach on HANA Dev. Guide / Sample

$
0
0

Hello colleagues,

 

I'm quite new to the topics and I can not find a proper documentation and samples.

I'm looking for a nice developer guide describing E2E development procedures of the searches on Enterprise Search on HANA.

In past, the Enterprise Search models need to be created in ESH_COCKPIT and ESH_MODELER transactions.

Once everything is done, you index the model and you are ready to consume it e.g. with CL_ESH_IF_SEARCH_REQUEST.


Now i learned that on HANA we have some annotations, like "@Search", "@EnterpriseSearch." and "@EnterpriseSearchHANA.".


I created the following CDS:


@AbapCatalog.sqlViewName:'ZTEST_ODATA_CDSV'

@AbapCatalog.compiler.compareFilter:true

@AccessControl.authorizationCheck:#NOT_REQUIRED

@EndUserText.label:'Test OData CDS'

@OData.publish:true

@Search.searchable:true

@EnterpriseSearch.enabled:true

@ObjectModel.semanticKey:  ['CARRID']

 

 

defineview Ztest_Odata_Cds as

   selectfrom scarr as scarr {

 

    //-------------------------------------------------

    @EnterpriseSearch.presentationMode:  [#DETAIL]

    @EnterpriseSearch.usageMode:  [#AUTO_FACET]

    key

    scarr.carrid,

   

    //-------------------------------------------------

    @EnterpriseSearch.presentationMode:  [#TITLE]

    @Search.defaultSearchElement:true

    @EnterpriseSearch.usageMode:  [#SUGGESTION]

    @Search.ranking:#HIGH   

    @Search.fuzzinessThreshold:0.8 

    scarr.carrname,

   

    //-------------------------------------------------

    @EnterpriseSearch.presentationMode:  [#DETAIL]

    @EnterpriseSearch.usageMode:  [#AUTO_FACET]

    scarr.currcode,

   

    //-------------------------------------------------

    @EnterpriseSearch.presentationMode:  [#DETAIL]

    @EnterpriseSearch.usageMode:  [#AUTO_FACET]

    scarr.url

 

  };


After activation, it has created a new connector inESH_COCKPIT:  ZTEST_ODATA_CDSV / P4ALL~ZTEST_ODATA_CDSV~.

But no model under SAPCDS has been created. And of course it does not work, tested with report ESH_TEST_SEARCH.


I'm wondering, how this all should work?

Do you know any E2E development guide or very simple example, like mine?


I have posted the same query on Enterprise Search community, but no response so far -  Re: HANA Enterprise Search Developer Guide and Samples


Thanks and Regards,

Dima



 

 

 


Viewing all articles
Browse latest Browse all 831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>