Skip to content

Commit 5193879

Browse files
committed
fixing docstring
1 parent 905343c commit 5193879

File tree

1 file changed

+4
-0
lines changed
  • integrations/opensearch/src/haystack_integrations/document_stores/opensearch

1 file changed

+4
-0
lines changed

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
@@ -1322,17 +1322,21 @@ def get_metadata_fields_info(self) -> dict[str, dict[str, str]]:
13221322
13231323
If we populated the index with documents like:
13241324
1325+
```python
13251326
Document(content="Doc 1", meta={"category": "A", "status": "active", "priority": 1})
13261327
Document(content="Doc 2", meta={"category": "B", "status": "inactive"})
1328+
```
13271329
13281330
This method would return:
13291331
1332+
```python
13301333
{
13311334
'content': {'type': 'text'},
13321335
'category': {'type': 'keyword'},
13331336
'status': {'type': 'keyword'},
13341337
'priority': {'type': 'long'},
13351338
}
1339+
```
13361340
13371341
:returns: The information about the fields in the index.
13381342
"""

0 commit comments

Comments
 (0)