Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add _source support for search #78

Merged
merged 2 commits into from Feb 2, 2022

Conversation

hengfeiyang
Copy link
Contributor

@hengfeiyang hengfeiyang commented Jan 28, 2022

now support pass _source to control returns fields for search.

the implement like elasticsearch. it's support three options:

  1. default, returns all fields of _source
{
"query_type": "matchall",
"_source": true
}
  1. returns none fields of _source
{
"query_type": "matchall",
"_source": false
}
  1. returns custom fields of _source
{
"query_type": "matchall",
"_source": ["field1", "field2"]
}

@hengfeiyang hengfeiyang changed the title feature: add _source support for query feature: add _source support for search Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants