Try our conversational search powered by Generative AI!
AI OnAI Off
Can you try MatchContained and see if that returns what you need?
var result = client.Search<Team>()
.Filter(x => x.Players.MatchContained(
p => p.FirstName, "Ronaldo"));
If not, how about using Projections and creating an anonymous object of what you need?
Hi!
I was wondering if it possible to filter the number of nested objects that FIND returns in a filtered nested query? Consider the following:
Data
Team 1 contains player1 (name = player1)and player2 (name = player2)
Team 2 contains player3 (name = player3) and player4 (name = player4)
I would like to achive a search result from find that contains
Team1 with Players only containing the object player1. Is it possible? Now it seems like FIND returns Team 1 with both player1 and player2.
/Magnus