File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -720,6 +720,7 @@ def delete(self,
720720 return
721721
722722 for record in data_dict .get ('deleted_records' , []):
723+ # FIXME: deleted_records return now has a hard limit in Core code...
723724 errmsg = _ ('Could not delete DataStore record _id=%s in SOLR core %s' ) % \
724725 (record ['_id' ], core_name )
725726 try :
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ def datastore_upsert(up_func: Action,
108108def datastore_delete (up_func : Action ,
109109 context : Context ,
110110 data_dict : DataDict ) -> ChainedAction :
111- data_dict ['include_records ' ] = True
111+ data_dict ['include_deleted_records ' ] = True
112112 backend = DatastoreSearchBackend .get_active_backend ()
113113 func_result = up_func (context , data_dict )
114114 try :
@@ -150,6 +150,7 @@ def datastore_search(up_func: Action,
150150 records = []
151151 try :
152152 records = backend .search (dict (data_dict , fl = fl ))
153+ ds_meta ['from_search_index' ] = True
153154 except DatastoreSearchException :
154155 if not backend .only_use_engine :
155156 # fallback to database query
You can’t perform that action at this time.
0 commit comments