Solr:从 solr 索引中检索字段名称? [英] Solr: Retrieve field names from a solr index?

查看:28
本文介绍了Solr:从 solr 索引中检索字段名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查询 Solr 实例的所有(或带前缀的)字段名称?

How can I query a Solr instance for all (or prefixed) field names?

我想使用不知道可能存在多少个的动态字段,例如:category_0_scategory_1_s

I want to use dynamic fields where I do not know how many may exist e.g: category_0_s, category_1_s etc.

我最好使用前缀,例如category_

推荐答案

使用 luke 处理程序:

Use the luke handler:

http://solr:8983/solr/admin/luke?numTerms=0

使用 xpath 获取所有具有与您要查找的动态字段定义匹配的标签 dynamicBase 的字段.

Use a xpath to get all the field which has the tag dynamicBase matching the dynamic fields definition you are looking for.

这篇关于Solr:从 solr 索引中检索字段名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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