Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

HANA ODATA - Fuzzy Search - CDS View

$
0
0

Hello Everybody,

 

i m not able to use the search notation in the url-call of the odata service.

anybody some expirience in creating a fuzzy search using odata on CDS-Views ?

 

CDS-View:

 

context searchDemoModel
{  // Tabelle mit volltext index   @Catalog.tableType: #COLUMN  Entity Artikel {  key matnr: String(18);  @SearchIndex.text : { enabled: true, async: true,  textAnalysis : {  mode: #EXTENDED,  languageDetection: ['en'],  configurationID : 'package::myconfig.hdbtextconfig'  }  }  @SearchIndex.fuzzy: { enabled: true }  maktx: String(40);  };  @Search.searchable: true  define view V_Artikel as select from Artikel as Artikel {  @EnterpriseSearch.key : true  Artikel.matnr,  @Search.defaultSearchElement: true  @Search.ranking: #HIGH  @Search.fuzzinessThreshold : 0.8  Artikel.maktx };
};'

 

odata:

service  { 
"MAXIMILIAN_JOHANNES"."playground.de_maxjoh.searchDemo::searchDemoModel.V_Artikel" as "Artikel" key("matnr")
create forbidden
update forbidden
delete forbidden;
}  

Result:

search.PNG

 

any hints ?

 

best regards

 

Marc


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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