索引的动态字段的 Solr 搜索查询 [英] Solr search query for dynamic fields indexed

查看:23
本文介绍了索引的动态字段的 Solr 搜索查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的项目中实现 solr 搜索.我有一个关于如何搜索在 solr 索引中创建的动态字段的问题例如:- 这是在索引中形成的标签

I am implementing the solr search in my project . I have one question regarding how do i search a dynamic fields that is created in a solr index Eg:- this is the tag that is formed in the index

我正在尝试使用此查询 Employee_* = 172 从 solr 进行搜索

And I am trying to search from solr using this query Employee_* = 172

如果搜索方式不正确,请帮助我.

Please help me in this if the way of searching is incorrect.

推荐答案

在您的查询中,您需要准确定义要搜索的具体字段,例如Employee_aEmployee_b(或您使用过的任何动态字段).您无法通过在查询中的字段名称中使用通配符来搜索所有动态字段.

In your queries, you need to define exactly what concrete fields you want to search, e.g. Employee_a, Employee_b (or whatever dynamic fields you've used). You can't search in all dynamic fields by using wildcards in a field name in queries.

这篇关于索引的动态字段的 Solr 搜索查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆