我想把维基百科索引到elasticsearch。我尝试了stream2es +ElasticSearch2.0.0和维基百科河插件2.6.0 +ElasticSearch1.6.0来索引最新的维基百科转储。但是,两者都得到了相同的错误消息:
XML document structures must start and end within the same entity.
我正在尝试提高针对ElasticSearch进行测试的套件的性能。 测试需要很长时间,因为Elasticsearch不会在更新后立即更新它的索引。例如,下面的代码运行时不会引发断言错误。# results are not populated 目前针对这个问题的解决方案是在代码中删除一个time.sleep调用,给ElasticSearch一些时间来更新它的索引。()# results are now