![]() Was specified via the scroll_id parameter body – A comma-separated list of scroll IDs to clear if none.Number of copies for the shard (number of replicas + 1)Ĭlear_scroll ( body=None, scroll_id=None, params=None, headers=None ) ¶Įxplicitly clears the search context for a scroll. Otherwise set to any non-negative value less than or equal to the total That must be active before proceeding with the bulk operation. wait_for_active_shards – Sets the number of shard copies.require_alias – Sets require_alias for all incoming.To make this operation visible to search, if false (the default) thenĭo nothing with refreshes. This operation visible to search, if wait_for then wait for a refresh refresh – If true then refresh the affected shards to make.pipeline – The pipeline id to preprocess incoming documents.Return from the _source field, can be overridden on each sub-request _source_includes – Default list of fields to extract and.The returned _source field, can be overridden on each sub-request _source_excludes – Default list of fields to exclude from.Or default list of fields to return, can be overridden on each sub. _source – True or false to return the _source field or not,.doc_type – Default document type for items which don’t.index – Default index for items which don’t provide one.body – The operation definition and data (action-data.Transport class and, subsequently, to theīulk ( body, index=None, doc_type=None, params=None, headers=None ) ¶Īllows to perform multiple index/update/delete operations in a single request. kwargs – any additional arguments will be passed on to the.transport_class – Transport subclass to use.Translated to a dictionary automatically. The entire dictionary will be passed to the ConnectionĬlass as kwargs, or a string in the format of host which will be hosts – list of nodes, or a single node, we should connect to.default ( self, obj ) es = Elasticsearch ( serializer = SetEncoder ()) Parameters: From rializer import JSONSerializer class SetEncoder ( JSONSerializer ): def default ( self, obj ): if isinstance ( obj, set ): return list ( obj ) if isinstance ( obj, Something ): return 'CustomSomethingRepresentation' return JSONSerializer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |