Examine config - Multiple Indexers, and aligning to IndexSets
Hi,
I'm trying to set up multiple IndexSets, so I can cover the different properties two key document types. (There are a few thousand of each).
I have the indexes building in the App_Data dir, and I'm able to create an ISearchCriteria object with the code below, and can successfully search over NodeName.
However, I get the feeling the Search/Index Providers aren't correctly linked to the IndexSet, as adding any Field() criteria goes on to return no results...
Am I missing something simple with lining up the IndexSet to the SearchProvider? Is it currently just using the internal index?
Examine config - Multiple Indexers, and aligning to IndexSets
Hi,
I'm trying to set up multiple IndexSets, so I can cover the different properties two key document types. (There are a few thousand of each).
I have the indexes building in the App_Data dir, and I'm able to create an ISearchCriteria object with the code below, and can successfully search over NodeName.
However, I get the feeling the Search/Index Providers aren't correctly linked to the IndexSet, as adding any Field() criteria goes on to return no results...
Am I missing something simple with lining up the IndexSet to the SearchProvider? Is it currently just using the internal index?
My ExamineIndex.config looks like this:
<ExamineLuceneIndexSets> <!-- The internal index set used by Umbraco back-office - DO NOT REMOVE --> <IndexSet SetName="InternalIndexSet" IndexPath="~/App_Data/ExamineIndexes/Internal/"> <IndexAttributeFields> <add Name="id" /> <add Name="nodeName" /> <add Name="updateDate" /> <add Name="writerName" /> <add Name="path" /> <add Name="nodeTypeAlias" /> <add Name="parentID" /> </IndexAttributeFields> <IndexUserFields /> <IncludeNodeTypes/> <ExcludeNodeTypes /> </IndexSet> <IndexSet SetName="ProjectIndexSet" IndexPath="~/App_Data/ExamineIndexes/Project/"> <IndexAttributeFields> <add Name="id" /> <add Name="nodeName" /> <add Name="updateDate" /> <add Name="nodeTypeAlias" /> </IndexAttributeFields> <IndexUserFields> <add Name="projectStatus" /> </IndexUserFields> <IncludeNodeTypes> <add Name="Project" /> </IncludeNodeTypes> <ExcludeNodeTypes /> </IndexSet> <IndexSet SetName="CompanyIndexSet" IndexPath="~/App_Data/ExamineIndexes/Company/"> <IndexAttributeFields> <add Name="id" /> <add Name="nodeName" /> <add Name="updateDate" EnableSorting="true" /> <add Name="nodeTypeAlias" /> </IndexAttributeFields> <IndexUserFields> <add Name="companyRole" /> </IndexUserFields> <IncludeNodeTypes> <add Name="Company" /> </IncludeNodeTypes> <ExcludeNodeTypes /> </IndexSet> </ExamineLuceneIndexSets>
And ExamineSettings.config
(Will be expanding the indexed user fields once I have it working...)
So the following works:
However, including a line like this will stop it from returning anything:
Am I missing something simple with lining up the IndexSet to the SearchProvider? Is it currently just using the internal index?
Any and all help appreciated, thanks.
What's the Lucene query that's being generated (you can see it from the ToString method of the ISearchCriteria object)?
is working on a reply...