mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
Merge ebc8e81a3f into 2f6addf351
This commit is contained in:
commit
058c6913fc
1 changed files with 2 additions and 2 deletions
|
|
@ -200,9 +200,9 @@ class ElasticsearchClient(VectorDBBase):
|
|||
}
|
||||
|
||||
for field, value in filter.items():
|
||||
query_body['query']['bool']['filter'].append({'term': {field: value}})
|
||||
query_body['query']['bool']['filter'].append({'term': {f'metadata.{field}': value}})
|
||||
query_body['query']['bool']['filter'].append({'term': {'collection': collection_name}})
|
||||
size = limit if limit else 10
|
||||
size = limit if limit else 10000
|
||||
|
||||
try:
|
||||
result = self.client.search(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue