Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
SDKs
Python SDK
Commits
25f72adc
Commit
25f72adc
authored
Sep 27, 2021
by
ethiraj krishnamanaidu
Committed by
Mohammad Malekmakan
Sep 27, 2021
Browse files
Added return Fields for search query
parent
4246648d
Changes
1
Hide whitespace changes
Inline
Side-by-side
osdu_api/libs/search_record_ids.py
View file @
25f72adc
...
...
@@ -84,6 +84,7 @@ class SearchId(HeadersMixin):
query
=
self
.
_create_search_query
()
request_body
=
{
"kind"
:
"*:*:*:*"
,
"returnedFields"
:
[
"id"
,
"version"
,
"acl"
,
"kind"
,
"legal"
],
"query"
:
query
}
self
.
request_body
=
json
.
dumps
(
request_body
)
...
...
@@ -155,7 +156,7 @@ class ExtendedSearchId(SearchId):
request_body
=
{
"kind"
:
"*:*:*:*"
,
"query"
:
query
,
"returnedFields"
:
[
"id"
,
"version"
],
"returnedFields"
:
[
"id"
,
"version"
,
"acl"
,
"kind"
,
"legal"
],
"limit"
:
self
.
limit
}
self
.
_request_body
=
request_body
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment