Closed pylipp closed 1 year ago
That's interesting! Maybe we can make db.get()
support a list of document IDs as doc_id
(similar to .remove()
does – altough it does have a doc_ids
instead of doc_id
). I'll have to think about that!
Hi!
I find that in the doc string of get
, it says:
Get exactly one document specified by a query or a document ID.
Plus, get
already has a parameter doc_id
, whilst search
doesn't have a similar parameter and returns a list.
I think search(doc_ids=doc_ids)
is more reasonable and feels unified.
I plan to implement this feature and want to know why you prefer modifying get
.
И как в итоге получить записи по списку doc_id? Не получается использовать в search массив из doc_ids
I would like to bump this feature request as I have a use-case for it.
Hey , I will have a look into it and start working on it.
@msiemens I have created a PR that inserts the given feature request. Please see #504
As a follow-up to #329 , how can I query for multiple docs using their IDs? Like
db.get(doc_id)
exists but only for a single document. I could iterate over the list of doc IDs yet this might not be as efficient.