我如何知道 solr 索引中有什么?

发布于 2024-11-24 04:03:39 字数 573 浏览 2 评论 0原文

我正在尝试将一个非常小的(6 行)表索引到 solr 中,它说它添加/更新了 6 个文档,但当我搜索字段时它不会返回任何内容。我的表如下

League:
field      |  type  |
---------------------
id         |  int   |
leaguename |  string|

,这是当我尝试完全导入时 solr 打印的内容

    03data-config.xmlfull-importidle1602011-07-13 19:11:42Indexing completed. Added/Updated: 6 documents. Deleted 0 documents.
2011-07-13 19:11:422011-07-13 19:11:4260:0:0.120
This response format is experimental. It is likely to change in the future.

有没有办法可以查看索引所保存的值?我尝试查看 solr 中的数据文件夹,但所有文件似乎都包含奇怪的非字母数字字符。

I'm trying to index a very small (6 rows) table into solr, and it says that it's added/updated 6 documents, but it doesn't return anything when I search for a field. My table is as follows

League:
field      |  type  |
---------------------
id         |  int   |
leaguename |  string|

and here is what solr prints when I try to do the full-import

    03data-config.xmlfull-importidle1602011-07-13 19:11:42Indexing completed. Added/Updated: 6 documents. Deleted 0 documents.
2011-07-13 19:11:422011-07-13 19:11:4260:0:0.120
This response format is experimental. It is likely to change in the future.

Is there a way that I can view the values that index is holding? I've tried looking in the data folder in solr, but all the files just seem to have strange non-alphanumeric characters in them.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

北斗星光 2024-12-01 04:03:39

Luke 是一个桌面应用程序,可让您检查索引、运行查询以及进行一般性的处理。

如果索引是远程的,您首先需要将其传输到桌面,然后在 Luke 中打开它。

http://code.google.com/p/luke/

卢克太棒了!

Luke is a desktop app which allows you to examine an index, run queries and generally muck around.

If the index is remote you will first need to transfer it to your desktop, then just open it in Luke.

http://code.google.com/p/luke/

Luke rocks!

朦胧时间 2024-12-01 04:03:39

假设您按照标准示例在本地主机和端口 8983 上运行 solr
您可以执行通配符查询,例如

http://localhost:8983/solr/select?q=*:*

这将返回包含所有存储字段的所有文档。

assuming you ar erunning solr on localhost and port 8983 as per standard example
you can do a wildcard query like

http://localhost:8983/solr/select?q=*:*

This will return all the documents with all stored fields.

路还长,别太狂 2024-12-01 04:03:39

从管理屏幕查询您的唯一关键字段的通配符。

唯一键字段名称:*
这将为您提供计数,以查看某些内容是否已编入索引。如果您也想查看所有字段,请在查询末尾指定字段列表 Strong

&FL=*

From the admin screen query a wildcard on whatever your unique key field is.

Uniquekeyfieldname:*
That will get you a count to see if something got indexed. If you want to see all fields too then specify the field list at the end of the query strong

&FL=*

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文