使用 Luke 检查 Lucene.NET 索引想要复制 NHibernate.Search 视图
我正在尝试使用术语组合一个索引,我将其指定为逗号分隔列表。我想复制 Luke 中的显示,如下所示:
http://ayende.com/Blog/archive/2009/05/03/nhibernate-search-again.aspx
但我的索引值仅显示为带有逗号分隔列表值的单个字段。例如:
标签 term,anotherterm
当我搜索索引时,如果我使用“term”搜索,它将返回结果,但如果我使用“anotherterm”搜索,它将不会返回任何内容
我认为索引过程会将逗号分隔列表分成单独的值,但情况似乎并非如此。
有人有什么想法吗?
谢谢
I am trying to put together an index using terms, which I specify as a comma separated list. I want to replicate the display in Luke as seen here:
http://ayende.com/Blog/archive/2009/05/03/nhibernate-search-again.aspx
But my index value just shows as a single field with the comma separate list value. For example:
Tags term,anotherterm
When I search my index, it will return results if I search with "term" but will not return anything if I search with "anotherterm"
I thought the indexing process would break the comma separate list apart into separate values but this does not seem to be the case.
Anyone got any ideas?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要索引的集合是 ISet我怀疑 T 是具有 [Indexed] 属性的类型,并且具有标有 [Field] 属性的属性名称。
The collection to index is ISet<T> and I suspect that T is a type with [Indexed] attribute and has a property Name marked with [Field] attribute.
这是作为这个问题的一部分得到回答的:
Lucene.NET搜索索引方法
This was answered as part of this question:
Lucene.NET search index approach