Preserve index when serializing and de-serializing search request


#1

Using Nest 2.4.7.

I am trying to store some SearchRequests so they can be used at later time. I am serializing and
de-serializing with the serializer provided in the client like this:

ElasticClient.Serializer.Serialize(request, stream);
ElasticClient.Serializer.Deserialize(stream);

When serializing the SearchRequest, the index name is not present in the resultant JSON. Is there a way to preserve the index name when serializing? Or, alternatively, set the index name on a SearchRequest after it has been de-serialized?


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.