索引搜索查询动态域索引 [英] Solr search query for dynamic fields indexed
问题描述
我有一个问题,我如何搜索在solr索引中创建的动态字段
例如: - 这是索引中形成的标签
我正在尝试使用此查询从solr搜索Employee_ * = 172
如果搜索方式不正确,请帮助我。 p>
在您的查询中,您需要准确定义要搜索的具体字段,例如 Employee_a
, Employee_b
(或您使用的任何动态字段)。您不能通过在查询中的字段名称中使用通配符来搜索所有动态字段。
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
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.
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.
这篇关于索引搜索查询动态域索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!