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

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

问题描述

我正在我的项目中实现solr搜索。
我有一个问题,我如何搜索在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屋!

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