jina.types.request.index

class jina.types.request.index.IndexRequest(request=None, envelope=None, copy=False)[source]

Bases: jina.types.request.Request, jina.types.request.mixin.DocsPropertyMixin, jina.types.request.mixin.GroundtruthPropertyMixin

Index request class.

Set constructor method.

Parameters
  • request (Union[bytes, dict, str, RequestProto, None]) – request object as bytes, dictionary, string or protobuf instance

  • envelope (Optional[EnvelopeProto]) – envelope of the request

  • copy (bool) – if true, request is copied