<IndexSet SetName="ProductsIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/Products/" > <IndexAttributeFields> <add Name="id" /> <add Name="nodeName"/> <add Name="productName"/> <add Name="nodeTypeAlias" /> </IndexAttributeFields> <IncludeNodeTypes> <add Name="homeProduct"/> <add Name="product"/> </IncludeNodeTypes> </IndexSet>
- 我在 ExamineSettings.config 中创建了检查索引器,如下所示:
<add name="ProductIndexer" type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine" supportUnpublished="true" supportProtected="true" analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" indexSet="ProductsIndexSet"/>
- 我在 ExamineSettings.config 中创建了产品搜索器,如下所示:
<add name="ProductSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine" supportUnpublished="false" supportProtected="true" indexSet="ProductsIndexSet" analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
但是当从Developer-Examine Management-ProductIndexer运行重建索引时,我在索引中得到 0 个文档。
我真的不确定如何继续检查嵌套内容。谁能帮我在嵌套内容上设置检查搜索索引?