SOLR & Hybris:不同的核心,具有相同组合类型的多个索引器类型
SOLR & Hybris: Different Cores, Multiple Indexer Type with the same Composed Type
是否可以使用相同的组合类型创建两个不同的索引类型?它会在 localhost:8983 中显示为两个不同的内核吗?
我在 Hybris 6.3 中成功创建了一个名为 myMediaVideoType 的 indexedType,其组合类型等于 Media。有一个名为 myMediaType 的现有索引类型具有相同的组合类型 (Media)。
问题是,我想让它出现在localhost:8983(核心部分),但它没有出现。
任何帮助将不胜感激,谢谢!
如果能说出具体的场景就好了,大家可以提出更好的解决方案。不管怎样,让我回答你的问题。
Is it possible to create two different indexedType with the same
composed Type?
是的,您可以使用相同的组合类型创建任意数量的索引类型。
Will it appears as two different cores in
localhost:8983?
是的,如果您为每个 IndexedType
配置不同的 SolrFacetSearchConfig
具有不同的 indexNamePrefix
值
Impex 片段:
# Declare the indexed type
INSERT_UPDATE SolrIndexedType;identifier[unique=true];type(code);
;myMediaType;Media;
;myMediaVideoType;Media;
# Declare the FacetSearchConfig
INSERT_UPDATE SolrFacetSearchConfig;name[unique=true];description;indexNamePrefix;
;myMediaTypeFSC;facetSearchConfigDescription1;myMediaType;
;myMediaVideoTypeFSC;facetSearchConfigDescription2;myMediaVideoType;
是否可以使用相同的组合类型创建两个不同的索引类型?它会在 localhost:8983 中显示为两个不同的内核吗?
我在 Hybris 6.3 中成功创建了一个名为 myMediaVideoType 的 indexedType,其组合类型等于 Media。有一个名为 myMediaType 的现有索引类型具有相同的组合类型 (Media)。
问题是,我想让它出现在localhost:8983(核心部分),但它没有出现。
任何帮助将不胜感激,谢谢!
如果能说出具体的场景就好了,大家可以提出更好的解决方案。不管怎样,让我回答你的问题。
Is it possible to create two different indexedType with the same composed Type?
是的,您可以使用相同的组合类型创建任意数量的索引类型。
Will it appears as two different cores in localhost:8983?
是的,如果您为每个 IndexedType
配置不同的 SolrFacetSearchConfig
具有不同的 indexNamePrefix
值
Impex 片段:
# Declare the indexed type
INSERT_UPDATE SolrIndexedType;identifier[unique=true];type(code);
;myMediaType;Media;
;myMediaVideoType;Media;
# Declare the FacetSearchConfig
INSERT_UPDATE SolrFacetSearchConfig;name[unique=true];description;indexNamePrefix;
;myMediaTypeFSC;facetSearchConfigDescription1;myMediaType;
;myMediaVideoTypeFSC;facetSearchConfigDescription2;myMediaVideoType;