Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Damon 217 posts 288 karma points
    Aug 19, 2015 @ 08:39
    Damon
    0

    How to exclude file name of page from Examine search

    Hi,

    I created a custom index and it is indexing custom fields from pages.

    However, it appears to be indexing the actual physical name of the page as well which I do not want.

    How do I exclude the name? I know you can exclude node types but what about the physical name?

    Thanks a lot!

  • Marc Goodson 2149 posts 14377 karma points MVP 9x c-trib
    Aug 20, 2015 @ 00:02
    Marc Goodson
    0

    Hi Damon

    Are you referring to the 'Name' of the node that you see in the Umbraco Backoffice Tree ?

    If so then by specifying a set of IndexAttributeFields for your IndexSet and not including the name 'nodeName' should 'remove' this property from your custom index.

    eg

    <IndexSet SetName="WebsiteIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/WebsiteIndexSet/">
    <IndexAttributeFields>
        <add Name="id" /> 
        <add Name="updateDate" />
        <add Name="writerName" />
        <add Name="path" />
        <add Name="nodeTypeAlias" />
        <add Name="parentID" />
    </IndexAttributeFields>
    <IndexUserFields>
        <add Name="bodyText"/>
        <add Name="metaDescription"/>
        <add Name="metaTitle"/>
    </IndexUserFields>
    <IncludeNodeTypes>
        <add Name="TextPage"/>
    </IncludeNodeTypes>
    <ExcludeNodeTypes>
    </ExcludeNodeTypes>
    

    (rebuild the index after changing the config)

Please Sign in or register to post replies

Write your reply to:

Draft