Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Apr 14, 2011 @ 15:48
    Jeroen Breuer
    0

    No results in examine media index

    Hello,

    I'm using Examine to index content and media, but somehow only the content is indexed. Here is my config:

    ExamineIndex.config

    <!-- This index is used for searching the nl website. -->
    <IndexSet SetName="NLIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/NL/" IndexParentId="1062">
      <IndexAttributeFields>
        <add Name="id" />
        <add Name="nodeName" />
        <add Name="updateDate" />
        <add Name="writerName" />
        <add Name="path" />
        <add Name="nodeTypeAlias" />
        <add Name="parentID" />
      </IndexAttributeFields>
      <IndexUserFields>
        <add Name="menuTitle" />
        <add Name="menuText" />
        <add Name="headerTitle" />
        <add Name="headerText" />
        <add Name="contentTitle" />
        <add Name="contentIntro" />
        <add Name="contentStart" />
        <add Name="contentBody" />
        <add Name="searchWords" />
        <add Name="uploader" />
        <add Name="nlName" />
        <add Name="nlKeywords" />
        <add Name="nlQuote" />
        <add Name="nlPerson" />
        <add Name="nlPosition" />
        <add Name="nlText" />
        <add Name="nlSubscription" />
        <add Name="nlFullText" />
        <add Name="nlCategory" />
      </IndexUserFields>
      <IncludeNodeTypes>
        <add Name="Contact" />
        <add Name="Content" />
        <add Name="Video" />
        <add Name="Pricing" />
        <add Name="News" />
        <add Name="NewsItem" />
        <add Name="uTubeTestimonial"/>
        <add Name="uTubeVideo"/>
      </IncludeNodeTypes>
      <ExcludeNodeTypes />
    </IndexSet>

    All the fields starting with nl are properties on a media type.

    ExamineSettings.config

    <add name="NLIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
               runAsync="true"
               supportUnpublished="false"
               supportProtected="false"
               interval="10"
               analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"/>
    
    <add name="NLSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
               analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
    

    Is there something wrong with this setup. I already tried supportUnpublished="true", but that also doesn't work. If I look at Luke I only see content is indexed. See this screenshot:

    Any idea what I could be doing wrong?

    Jeroen

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Apr 14, 2011 @ 17:25
    Jeroen Breuer
    0

    I think it's related because I set a IndexParentId. Because of this the media items are skipped. Is there a way to set an IndexParentId and search for media items?

    Jeroen

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Apr 14, 2011 @ 18:21
    Jeroen Breuer
    0

    I can confirm that it didn't work because of the IndexParentId attribute. I've now created 2 indexes. 1 for the content with an IndexParentId  attribute and 1 for the media without it.

    Jeroen

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies