Commit 367d37ba authored by Mohammad Malekmakan's avatar Mohammad Malekmakan
Browse files

Merge branch 'issue20' into 'master'

Added return Fields for search query

See merge request !34
parents ae14d37d 25f72adc
Pipeline #67895 passed with stages
in 2 minutes and 41 seconds
...@@ -84,6 +84,7 @@ class SearchId(HeadersMixin): ...@@ -84,6 +84,7 @@ class SearchId(HeadersMixin):
query = self._create_search_query() query = self._create_search_query()
request_body = { request_body = {
"kind": "*:*:*:*", "kind": "*:*:*:*",
"returnedFields": ["id", "version", "acl", "kind", "legal"],
"query": query "query": query
} }
self.request_body = json.dumps(request_body) self.request_body = json.dumps(request_body)
...@@ -155,7 +156,7 @@ class ExtendedSearchId(SearchId): ...@@ -155,7 +156,7 @@ class ExtendedSearchId(SearchId):
request_body = { request_body = {
"kind": "*:*:*:*", "kind": "*:*:*:*",
"query": query, "query": query,
"returnedFields": ["id", "version"], "returnedFields": ["id", "version", "acl", "kind", "legal"],
"limit": self.limit "limit": self.limit
} }
self._request_body = request_body self._request_body = request_body
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment