我用Apache Lucene配置了Hibernate搜索,以便通过给定的坐标更容易地搜索enitites。现在,我想知道如何才能为搜索实体添加更多条件。我还使用了Spring Data项目和查询DSL。我正在尝试使用QueryDSL的Predicate类来保持我的应用程序的一致性。有可能做到这一点吗?
我的Place.class
@Getter
@Setter
@Entity
@Indexed
@Spatial
public class Place implements Serializable {
private static final long serialVersionUI
我是hibernate search的新手,有这个问题,我想在hibernate search中使用名、中间名、姓氏、用户名和合作id中的任何一个来搜索特定合作中的成员,搜索是返回匹配任何搜索词的成员,而不考虑合作id。 非常感谢你在上面的问题上的帮助,我仍然是hibernate搜索的新手,这真的占用了我的时间。 请参考下面的代码示例: public List<MemberProfile> searchForMember(String memberSearchTerm, int cooperativeId, int pageNumber, int pageSize) throws
ElasticSearch给了我以下例外:
WARNING: request [POST http://localhost:9200/domain.dog/_search?size=10000&from=0] returned 1 warnings: [299 Elasticsearch-7.11.2-3e5a16cfec50876d20ea77b075070932c6464c7d "[types removal] Type queries are deprecated, prefer to filter on a field instead."]
org.hiber