Skip to content

Commit ff7d709

Browse files
committed
fix: Fixed 'Search.validate()'
1 parent 2d75bc2 commit ff7d709

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

django_opensearch_dsl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from .documents import Document # noqa
66
from .fields import * # noqa
77

8-
__version__ = '0.1.1'
8+
__version__ = '0.1.2'
99

1010

1111
def autodiscover():

django_opensearch_dsl/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def to_queryset(self, keep_order=False):
4343

4444
def validate(self, explain=False):
4545
response = connections.get_connection().indices.validate_query(
46-
body=self.to_dict(), index=self._index._name, explain=True
46+
body=self.to_dict(), index=self._index[0], explain=True
4747
)
4848

4949
if not explain:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
setup(
3939
name='django-opensearch-dsl',
40-
version='0.1.1',
40+
version='0.1.2',
4141
description="""Wrapper around opensearch-dsl-py for django models""",
4242
long_description=LONG_DESCRIPTION,
4343
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)