【问题标题】:uploaded data is not visible in solr上传的数据在 solr 中不可见
【发布时间】:2015-07-29 02:25:42
【问题描述】:

我正在使用 solr4.7。我通过将“collection1(solr 提供的默认示例)”复制到不同的名称(例如“wiki”)并使用新名称更新 core.properties 创建了一个新核心。因此,新核心在 solr 管理面板中可见。

启动 solr 后,我正在尝试将数据导入新核心,如下所示。

$ java -jar post.jar ../../../enwiki-20150602-pages-articles1.xml -Durl='http://localhost:8983/solr/#/wiki/update'

SimplePostTool version 1.5
Posting files to base url http://localhost:8983/solr/update using content-type application/xml..
POSTing file enwiki-20150602-pages-articles1.xml
SimplePostTool: WARNING: No files or directories matching -Durl=http:/localhost:8983/solr/#/wiki/update
1 files indexed.
COMMITting Solr index changes to http://localhost:8983/solr/update..
Time spent: 0:00:03.671

我也试过了

$ java -jar post.jar ../../../enwiki-20150602-pages-articles1.xml

但仍然在 solr 管理面板上查询时,我没有得到任何数据。所以我的问题是,如果数据已被索引,那么为什么我看不到它。我到底在哪里做错了。

【问题讨论】:

  • 尝试搜索 q=*:* 并检查是否反映了您的更新...
  • 已经试过了。但仍然没有得到。
  • 好的,这意味着数据没有被索引......您需要检查新核心是否已正确更新......
  • 您说,当您使用 q=*:* 进行搜索时,结果中没有任何结果表明它没有为您正在搜索的核心中的数据编制索引......所以更新没有正确发生核心...
  • 我认为您不需要 URL 中的 #。

标签: solr


【解决方案1】:

不确定这是否已解决。

我遇到了完全相同的问题。您需要指定要提取的文件所在的路径/位置。

C:\test-solr>java -Durl=http://localhost:8983/solr/testdemo/update -Dtype=text/csv -jar C:/test-solr/exampledocs/post.jar "C:\test-solr\exampledocs\ingestMeFile.csv"我>

【讨论】:

    猜你喜欢
    • 2022-07-15
    • 2012-08-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-14
    • 1970-01-01
    • 1970-01-01
    • 2019-04-12
    相关资源
    最近更新 更多