Skip to content

Commit 736839d

Browse files
committed
RDBC-889 Improve search engine type in index definition
1 parent 51ac887 commit 736839d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ravendb/documents/indexes/definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def from_json(cls, json_dict: dict) -> IndexDefinition:
244244
index_type = json_dict.get("IndexType", None)
245245
if index_type is not None:
246246
result.__index_type = IndexType(index_type)
247-
if json_dict["Configuration"] and json_dict["Configuration"]["Indexing.Static.SearchEngineType"]:
247+
if json_dict["Configuration"] and "Indexing.Static.SearchEngineType" in json_dict["Configuration"]:
248248
result.search_engine_type = SearchEngineType(json_dict["Configuration"]["Indexing.Static.SearchEngineType"])
249249
result.output_reduce_to_collection = json_dict["OutputReduceToCollection"]
250250
result.reduce_output_index = json_dict["ReduceOutputIndex"]

0 commit comments

Comments
 (0)