How to search with sub collections properties in RavenDB client api

Viewed 99

As the title says I would like to know how can use the Session.Query.Search(...) from RavenDB C# client API to do a full text search in property of a collection which is a property of an entity.

public class Order
{
    public List<Product> Products { get; set; }
}

public class Product
{
    public string Name { get; set; }
}

In pure RQL (raven query language) the query would be like this:

from Orders where search(Products.Name, '*alice*')
1 Answers
Related