我开始根据原始示例配置 Solr,因此示例中包含了许多随机字段。
我可能会使用其中的一两个,但在大多数情况下,它们都只是坐在那里未使用(我的数据配置中没有提到它们或向它们存储数据。
这是否会对性能产生任何影响(即使是少量)?我应该继续删除它们还是没关系?
多谢你们
我开始根据原始示例配置 Solr,因此示例中包含了许多随机字段。
我可能会使用其中的一两个,但在大多数情况下,它们都只是坐在那里未使用(我的数据配置中没有提到它们或向它们存储数据。
这是否会对性能产生任何影响(即使是少量)?我应该继续删除它们还是没关系?
多谢你们
I recommend deleting the fields and associated unused types. Possibly no performance impact, but there are some dynamic fields and copyFields which may cause confusion down the line. Or just build a new config directly instead (you only need two files to start: schema.xml and solrconfig.xml).
If you are doing it by trimming unused fields, make sure to keep or change whatever your uniqueKey points at, whatever your 'df' default field is and _ version_ (no spaces with underscores).
The last one is requires for real-time get and updateLog, which are enabled in example's solrconfig.xml as well. Easier to keep _ version_ than to try removing all those things.
(Update Jan 2017: There is now a presentation video, specifically working through examples and how to clean them)