【问题标题】:Best way to exclude object from search with Fluent NHibernate Search使用 Fluent NHibernate Search 从搜索中排除对象的最佳方法
【发布时间】:2011-04-06 07:05:46
【问题描述】:

我有一个带有布尔属性的类。

我想从搜索结果中排除具有错误值的实例。

使用 Fluent NHibernate Search 的最佳方法是什么?

【问题讨论】:

    标签: fluent-nhibernate fluent-interface nhibernate.search


    【解决方案1】:

    我认为你有 3 种方法来做到这一点

    1. 排除实例存储在 lucene 索引中
    2. 使用全文过滤器 (more here)
    3. “一种 where 子句”使用 Lucene 查询

    使用全文过滤器似乎是最好的解决方案。不幸的是,它没有在 Fluent Nhibernate Search 中实现。我发现了一个 hack 并希望能够贡献添加此功能。

    【讨论】:

      猜你喜欢
      • 2010-09-23
      • 1970-01-01
      • 1970-01-01
      • 2010-10-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多