简体   繁体   English

Solr完全导入有问题

[英]Solr full-import having Problems

I am running Sol 3.6 version with 5 cores.I do full import whenever my application starts up. 我正在运行具有5个核心的Sol 3.6版本。每当我的应用程序启动时,我都会完全导入。 I am simply calling http://:/solr//dataimport?command=full-import 我只是在打电话http://:/ solr // dataimport?command = full-import

As of now i am facing 2 weird issues. 截至目前,我面临着2个奇怪的问题。

  1. One of the core's data is empty(index got deleted).Dont know why. 核心数据之一为空(索引已删除)。不知道为什么。
  2. In my query i had put restriction to load only 6 months old data.Sometimes i get data which is much older than 6 months. 在我的查询中,我限制只能加载6个月的旧数据。有时我获得的数据比6个月大得多。

Questions : What does default "clean=true" mean?In my case it is true.Does that mean i will not see data once i execute following query? 问题:默认的“ clean = true”是什么意思?在我的情况下是true。这表示我执行以下查询后将看不到数据吗? http://:/solr//select/?q= %3A &version=2.2&start=0&rows=10&indent=on http://:/ solr // select /?q = %3A &version = 2.2&start = 0&rows = 10&indent = on

I experienced the same problem. 我遇到了同样的问题。

Executing full-import with clean=false means the DIH will erase all the documents from the index before importing. 使用clean = false执行完全导入意味着DIH将在导入之前从索引中删除所有文档。 After the process is completely done, DIH will execute a commit, making the changes visible. 该过程完全完成后,DIH将执行一次提交,使更改可见。

What happened to me is the following: 我发生了以下事情:

  1. Execute full-import with a DB query that takes really long 使用非常耗时的数据库查询执行完全导入

  2. Delete documents by query, with commitWithIn set. 通过查询删除文档,并设置commitWithIn。

  3. Index is empty. 索引为空。

Besides that, this problem did not happen with autocommit configured as follow: 除此之外,按以下方式配置自动提交不会发生此问题:

<autoCommit>
   <maxTime>1000</maxTime>
   <openSearcher>false</openSearcher>
 </autoCommit>

but did happen with 但是确实发生了

<autoCommit>
  <maxTime>1000</maxTime>
  <openSearcher>true</openSearcher>
</autoCommit>

and with autoSoftCommit 并与autoSoftCommit

<autoSoftCommit>
  <maxTime>1000</maxTime>
</autoSoftCommit>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM