Solr/Lucene 非常基本的家伙 [英] Very basic dude with Solr/Lucene

查看:29
本文介绍了Solr/Lucene 非常基本的家伙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个项目中工作,该项目在 Lucene 中有大量数据.我们需要显示分面搜索,当尝试使用常规 Lucene 访问模拟它时,它所需的时间是不可接受的.

I am working in a project that has a large amount of data in Lucene. We need to show a faceted search and the time required for it is unacceptable when trying to simulate it using regular Lucene accesss.

我一直在阅读有关 Solr 的内容,但是教程对这个基本点不是很清楚:

I have been reading about Solr, but tutorials are not very clear about this basic point:

使用Solr和Lucene以同样的方式存储数据吗?我的意思是,我可以使用 Solr 访问我在 Lucene 中存储的数据,还是必须进行数据迁移?

Is the data stored in the same way using Solr and Lucene? I mean, could I access the data I have stored with Lucene by using Solr or would I have to make a data migration?

推荐答案

是的,您可以在 Solr 实例中使用相同的 Lucene 索引.您只需要创建一个 schema.xml 来匹配您在索引中的字段.

Yes, you can use the same Lucene index in a Solr instance. You only need to create a schema.xml to match the fields you have in your index.

这篇关于Solr/Lucene 非常基本的家伙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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