开发者

Reindex after change in one field

I have a field with indexed="no" and stored="yes" and now I need to query that field.

How can build this index after setting indexed="yes"? or I need to do a complet开发者_运维百科e reindex (re-import) ?

Thanks


No, you'll need to do a complete reindex. Solr indexes a document at a time and in order to have any change done to any of its fields, the whole document will have to be reindexed.

If all your fields are stored, you might be able to write some code to have the complete reindexing done without having to fetch the data again from the data source -- you can fetch the documents from Solr and then add them back to Solr.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜