I try to exclude the nodes. But if I Publish every time the site, then the it is not anymore excluded, Because I only want to , in this case search in the page Projecten in the site. I do it like this:
<?xml version="1.0"?>
<!--
Umbraco examine is an extensible indexer and search engine.
This configuration file can be extended to create your own index sets.
Index/Search providers can be defined in the UmbracoSettings.config
More information and documentation can be found on CodePlex: http://umbracoexamine.codeplex.com
-->
<ExamineLuceneIndexSets>
<!-- The internal index set used by Umbraco back-office - DO NOT REMOVE -->
<IndexSet SetName="InternalIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/Internal/"/>
<!-- The internal index set used by Umbraco back-office for indexing members - DO NOT REMOVE -->
<IndexSet SetName="InternalMemberIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/InternalMember/">
<IndexAttributeFields>
<add Name="id" />
<add Name="nodeName"/>
<add Name="updateDate" />
<add Name="writerName" />
<add Name="loginName" />
<add Name="email" />
<add Name="nodeTypeAlias" />
</IndexAttributeFields>
</IndexSet>
<!-- Default Indexset for external searches, this indexes all fields on all types of nodes-->
<IndexSet SetName="ExternalIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/External/" />
<IndexSet SetName="XFSIndexSet" IndexPath="~/App_Data/XFS/Index">
<IndexAttributeFields>
<add Name="bodyProject" />
</IndexAttributeFields>
<IncludeNodeTypes>
<!--<add Name="ProjectPage"/>-->
<add Name="Cat" />
</IncludeNodeTypes>
<ExcludeNodeTypes>
<add Name="Slides" />
<add Name="slide" />
<add Name="TextPageTwoColumns" />
<add Name="ActionTextPage" />
<add Name="umbTextPage" />
<add Name="Search" />
<add Name="umbNewsOverview" />
<add Name="umbNewsItem" />
<add Name="News Item" />
<add Name="News Overview" />
<add Name="umbHomePage" />
</ExcludeNodeTypes>
</IndexSet>
<IndexSet SetName="XFSMediaIndexSet" IndexPath="~/App_Data/XFS/Index" />
</ExamineLuceneIndexSets>
It looks like you have values in both the <IncludeNodeTypes> and in the <ExcludeNodeTypes>. This may be confusing the indexer. I suspect you need to pick one or the section other and not put values in both.
If you have <add Name="Cat"/> in IncludeNodeTypes, then you are telling the indexer that that is the only nodeTypeAlias that you want the indexer to use. All other nodeTypeAliases would be excluded so you don't need anything in the ExcludeNodeType section.
If you have nodes listed in ExcludeNodeTypes, then you are telling the indexer that all nodeTypes except the ones in your list should be indexed. Since "Cat" is not in the exclude list it would be inclued in the index.
Have you used the backoffice Documents --> Examine Management tab to view your indexers and searchers? You could try rebuilding your index to be sure any changes to your config settings have been picked up if no new pages have been published.
Exclude nodes in examineIndex
Hi everyone,
I try to exclude the nodes. But if I Publish every time the site, then the it is not anymore excluded, Because I only want to , in this case search in the page Projecten in the site. I do it like this:
Thank you
It looks like you have values in both the <IncludeNodeTypes> and in the <ExcludeNodeTypes>. This may be confusing the indexer. I suspect you need to pick one or the section other and not put values in both.
If you have <add Name="Cat"/> in IncludeNodeTypes, then you are telling the indexer that that is the only nodeTypeAlias that you want the indexer to use. All other nodeTypeAliases would be excluded so you don't need anything in the ExcludeNodeType section.
If you have nodes listed in ExcludeNodeTypes, then you are telling the indexer that all nodeTypes except the ones in your list should be indexed. Since "Cat" is not in the exclude list it would be inclued in the index.
Hi Janet,
Thank you for your comment. I have it now like this:
But still It looks also in other pages, other then projectpage
Are you sure that the correct IndexSet is being used by you query?
From your ExamineIndex.config:
In your code:
If you are specifying this in your code check your ExamineSettings.config and see if you have a defualt set:
Have you used the backoffice Documents --> Examine Management tab to view your indexers and searchers? You could try rebuilding your index to be sure any changes to your config settings have been picked up if no new pages have been published.
is working on a reply...