Skip to content

Commit c017fce

Browse files
Auto-generated API code
1 parent 383f3bf commit c017fce

File tree

2 files changed

+45
-11
lines changed

2 files changed

+45
-11
lines changed

elasticsearch/dsl/query.py

+43-1
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,49 @@ def __init__(
13821382
min_term_freq: Union[int, "DefaultType"] = DEFAULT,
13831383
min_word_length: Union[int, "DefaultType"] = DEFAULT,
13841384
routing: Union[str, "DefaultType"] = DEFAULT,
1385-
stop_words: Union[str, Sequence[str], "DefaultType"] = DEFAULT,
1385+
stop_words: Union[
1386+
Literal[
1387+
"_arabic_",
1388+
"_armenian_",
1389+
"_basque_",
1390+
"_bengali_",
1391+
"_brazilian_",
1392+
"_bulgarian_",
1393+
"_catalan_",
1394+
"_cjk_",
1395+
"_czech_",
1396+
"_danish_",
1397+
"_dutch_",
1398+
"_english_",
1399+
"_estonian_",
1400+
"_finnish_",
1401+
"_french_",
1402+
"_galician_",
1403+
"_german_",
1404+
"_greek_",
1405+
"_hindi_",
1406+
"_hungarian_",
1407+
"_indonesian_",
1408+
"_irish_",
1409+
"_italian_",
1410+
"_latvian_",
1411+
"_lithuanian_",
1412+
"_norwegian_",
1413+
"_persian_",
1414+
"_portuguese_",
1415+
"_romanian_",
1416+
"_russian_",
1417+
"_serbian_",
1418+
"_sorani_",
1419+
"_spanish_",
1420+
"_swedish_",
1421+
"_thai_",
1422+
"_turkish_",
1423+
"_none_",
1424+
],
1425+
Sequence[str],
1426+
"DefaultType",
1427+
] = DEFAULT,
13861428
unlike: Union[
13871429
Union[str, "types.LikeDocument"],
13881430
Sequence[Union[str, "types.LikeDocument"]],

elasticsearch/dsl/types.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -1617,11 +1617,7 @@ class InnerHits(AttrDict[Any]):
16171617
DefaultType,
16181618
]
16191619
seq_no_primary_term: Union[bool, DefaultType]
1620-
fields: Union[
1621-
Union[str, InstrumentedField],
1622-
Sequence[Union[str, InstrumentedField]],
1623-
DefaultType,
1624-
]
1620+
fields: Union[Sequence[Union[str, InstrumentedField]], DefaultType]
16251621
sort: Union[
16261622
Union[Union[str, InstrumentedField], "SortOptions"],
16271623
Sequence[Union[Union[str, InstrumentedField], "SortOptions"]],
@@ -1656,11 +1652,7 @@ def __init__(
16561652
DefaultType,
16571653
] = DEFAULT,
16581654
seq_no_primary_term: Union[bool, DefaultType] = DEFAULT,
1659-
fields: Union[
1660-
Union[str, InstrumentedField],
1661-
Sequence[Union[str, InstrumentedField]],
1662-
DefaultType,
1663-
] = DEFAULT,
1655+
fields: Union[Sequence[Union[str, InstrumentedField]], DefaultType] = DEFAULT,
16641656
sort: Union[
16651657
Union[Union[str, InstrumentedField], "SortOptions"],
16661658
Sequence[Union[Union[str, InstrumentedField], "SortOptions"]],

0 commit comments

Comments
 (0)