NHibernate 和 NHibernate 搜索版本问题
我在 Nhibernate 上有带有 Nhibernate Search 的示例应用程序,其版本号为
Nhibernate - v2.0.0.1001 Nhibernate Search - v2.0.0.1001
我不确定它是否是自定义构建的,但这里一切似乎都工作正常。但是,一旦我将 Nhibernate 版本更改为 v2.0.1.4000(后来的次要版本和构建),事情就开始中断,
IList result = s.CreateCriteria(typeof(DomainObject)).Add(NHibernate.Search.Search. Query("Summary:NHibernate or Name:NHibernate"))
VStudio 抱怨“‘Query’不受支持的语言。”
有人遇到过类似的问题吗?我如何获得 v2.0.1.4000 的端口?
谢谢。
I have sample application on Nhibernate with Nhibernate Search with the following version nos,
Nhibernate - v2.0.0.1001
Nhibernate Search - v2.0.0.1001
I am not sure if it custom build, but everything seems to work fine here. But as soon as I change the Nhibernate version to v2.0.1.4000 (a later minor version and build), things start breaking at,
IList result = s.CreateCriteria(typeof(DomainObject)).Add(NHibernate.Search.Search.Query("Summary:NHibernate or Name:NHibernate"))
VStudio complains "'Query' is not supported language."
Has anyone had a similar issue? How could I get a port for v2.0.1.4000?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想创建 lucene 查询的方法就是使用查询解析器:
I guess the way to create a lucene query was to just use the Query Parser: