This content is archived. See latest version here

Last updated: Feb 23 2015

When you are searching using the Client class, inheritance is supported out of the box. For example, you have two classes, User and Author. If you search for Users, you 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

In addition, you can search over all types that implement a specific interface.

Do you have feedback on this documentation? Send an email to For development-related questions and discussions, refer to our Forums on