When querying RavenDB with a simple query, the autoindex is pretty useless as the SortOptions is always set to String even when the property is an integer.
var test = session.Query<Cup>()
.OrderBy(o => o.Order)
.ToList();
public class Cup
{
public string Id { get; set; }
public string Name { get; set; }
public int Order { get; set; }
}
Do i really have to make a static index manually?