[docs] Add Top search public API in Data Catalog section
@@ -581,23 +581,17 @@ The [metadata API](https://github.com/cloudera/hue/tree/master/desktop/libs/meta
### Searching for entities
- $.post("/metadata/api/catalog/search_entities_interactive/", {
- query_s: ko.mapping.toJSON("*sample"),
- sources: ko.mapping.toJSON(["sql", "hdfs", "s3"]),
- field_facets: ko.mapping.toJSON([]),
- limit: 10
- }, function(data) {
- console.log(ko.mapping.toJSON(data));
- });
+ curl -X POST http://demo.gethue.com/api/metadata/search/entities_interactive/' -d 'query_s="*sample"&sources=["documents", "sql", "hdfs", "s3"]'
-Searching for entities with the dummy backend:
+Some of the parameters:
+- **query_s:** search term
+- **sources:** sources to search from `["documents", "sql", "hdfs", "s3"]`
+- **field_facets:** `['type', 'owner', 'tags', 'lastModified']`
+- **limit:** 10
- $.post("/metadata/api/catalog/search_entities_interactive/", {
- query_s: ko.mapping.toJSON("*sample"),
- interface: "dummy"
- }, function(data) {
- console.log(ko.mapping.toJSON(data));
- });
+Searching for entities with the `dummy` catalog:
+
+ curl -X POST http://demo.gethue.com/api/metadata/search/entities_interactive/ -d 'query_s="*sample"&interface="dummy"'
### Finding an entity
