Finding several documents by their title in a single query #696
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's an enhancement of the searching by title added in d98c1bd , it allow to specify several titles at the same time so all the corresponding documents are returned.
At first I though about adding a new parameter but at the end I noticed the
tag
parameter can be specified several times so I used the same approach.Our use case is to be able to quickly download several files scattered in several documents from their titles and with this we can do it with only two calls:
As some times we deal with lots of files, it means we can do it with a synchronous call instead of doing it in an asynchronous job.
I had to introduce another thing (and I'm not too happy about it, so alternative suggestions are welcome) is to make the document search endpoint available as a
POST
call, because when when I search for a lot of documents at the same time theGET
URI's are becoming too long and I getURI Too Long
errors.