You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public IEnumerable<string> GetDocumentIds(Guid userId)
{
var queryResults = new ElasticClient(SearchSettings).Search<Media>(x => x
.Index("Media")
.Source(s => s.Include(m => m.Id))
.Size(5000)
.Query(p => p.Term(f => f.UserId, userId.ToString())));
return queryResults.Documents.Select(m => m.Id);
}
Exception: Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'self' with type 'Nest.DSL.Search.SearchSourceDescriptor`1[Data.Model.Media]'. Path '_source'.
The offending property seems to be in: NEST.ISearchRequest.Source