This content is archived. See latest version here


When searching using the Client class inheritance is supported out of the box. In other words, if we have two classes, User and Author and we search for Users we can also get matching Authors back.


searchResult = client.Search<User>()
    .InField(x => x.Name)

var isUser = (searchResult.First is User);
//isUser IS true

var isAuthor = (searchResult.First is Author);
//isAuthor MIGHT be true

It is also possible to search over all types that implement a specific interface.

Last updated: Sep 26, 2013