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

Allow list of filter values in REST API #568

Merged
merged 1 commit into from
Nov 9, 2020
Merged

Conversation

tanaysoni
Copy link
Contributor

@tanaysoni tanaysoni commented Nov 9, 2020

This PR allows the filters in the REST API to be a single string or a list of strings.

So, both queries are now valid:

{"questions": ["Where does Carla lives?"], "filters": {"name": "filename1"}}

{"questions": ["Where does Carla lives?"], "filters": {"name": ["filename1", "filename2"]}}

Resolves #567

@tanaysoni tanaysoni requested a review from tholor November 9, 2020 17:15
Copy link
Member

@tholor tholor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

Controller search_documents function should accept multiple filter values for a single key
2 participants