There was an error while loading. Please reload this page.
1 parent e10df98 commit e75ac15Copy full SHA for e75ac15
elasticsearch_dsl/search.py
@@ -147,7 +147,7 @@ def index(self, *index):
147
else:
148
indexes = []
149
for i in index:
150
- if isinstance(i, str):
+ if isinstance(i, string_types):
151
indexes.append(i)
152
elif isinstance(i, list):
153
indexes += i
test_elasticsearch_dsl/test_search.py
@@ -162,6 +162,8 @@ def test_search_index():
162
assert s._index == ['i']
163
s = s.index('i2')
164
assert s._index == ['i', 'i2']
165
+ s = s.index(u'i3')
166
+ assert s._index == ['i', 'i2', 'i3']
167
s = s.index()
168
assert s._index is None
169
s = search.Search(index=('i', 'i2'))
0 commit comments