Ravendb搜索查询失败

时间:2015-11-08 15:44:25

标签: ravendb nosql

这是索引类

public class Facility_SearchTerm : AbstractIndexCreationTask<FacilityApplication>
{
    public Facility_SearchTerm()
    {
        Map = facilities => from facility in facilities
                            select new
                            {
                                facility.FacilityName
                            };

        Indexes.Add(x => x.FacilityName, FieldIndexing.Analyzed);
    }
}

这是一个简单的查询

var query = session.Advanced.DocumentQuery<FacilityApplication, Facility_SearchTerm>()
                    .Statistics(out statsRef)
                    .Search(s => s.FacilityName, "abc")
                    .Skip(size * (page - 1))
                    .Take(size);

有什么问题?我收到了错误

"Query failed. See inner exception for details. at Raven.Client.Connection.ServerClient.Query(String index, IndexQuery query, String[] includes, Boolean metadataOnly, Boolean indexEntriesOnly)

0 个答案:

没有答案