如何使用NHibernate搜索搜索所有字段?
NHibernate在我当前的解决方案中运行良好,但我希望执行搜索所有字段的查询。我怎么能做这样的事情如何使用NHibernate搜索搜索所有字段?,nhibernate,nhibernate.search,Nhibernate,Nhibernate.search,NHibernate在我当前的解决方案中运行良好,但我希望执行搜索所有字段的查询。我怎么能做这样的事情 .CreateFullTextQuery<MyObjectGraph>("*", queryText) .CreateFullTextQuery<MyObjectGraph>("%", queryText) .CreateFullTextQuery<MyObjectGraph>("*:test") .CreateFullTextQuery<MyObje
.CreateFullTextQuery<MyObjectGraph>("*", queryText)
.CreateFullTextQuery<MyObjectGraph>("%", queryText)
.CreateFullTextQuery<MyObjectGraph>("*:test")
.CreateFullTextQuery<MyObjectGraph>("%:test")
.CreateFullTextQuery(“*”,queryText)
.CreateFullTextQuery(“%,queryText”)
.CreateFullTextQuery(“*:测试”)
.CreateFullTextQuery(“%:test”)
我试过上面的方法,但都不起作用。我搜索了很长一段时间,但找不到这样做的方法。你必须写:
.CreateFullTextQuery<MyObjectGraph>("Field:{0}", criteria);
.CreateFullTextQuery(“字段:{0}”,条件);
例如:
.CreateFullTextQuery<MyObjectGraph>("Name:{0}", "Ramon");
.CreateFullTextQuery(“名称:{0}”,“Ramon”);
Ramon,别忘了标记正确答案!阿根廷的问候