Skip to content

Commit 2858e94

Browse files
fixing docstring (#2757)
1 parent 188bd3c commit 2858e94

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • integrations/opensearch/src/haystack_integrations/document_stores/opensearch

integrations/opensearch/src/haystack_integrations/document_stores/opensearch/document_store.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,17 +1351,21 @@ async def get_metadata_fields_info_async(self) -> dict[str, dict[str, str]]:
13511351
13521352
If we populated the index with documents like:
13531353
1354+
```python
13541355
Document(content="Doc 1", meta={"category": "A", "status": "active", "priority": 1})
13551356
Document(content="Doc 2", meta={"category": "B", "status": "inactive"})
1357+
```
13561358
13571359
This method would return:
13581360
1361+
```python
13591362
{
13601363
'content': {'type': 'text'},
13611364
'category': {'type': 'keyword'},
13621365
'status': {'type': 'keyword'},
13631366
'priority': {'type': 'long'},
13641367
}
1368+
```
13651369
13661370
:returns: The information about the fields in the index.
13671371
"""

0 commit comments

Comments
 (0)