Copied to clipboard

Flag this post as spam?

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


  • Rune Grønkjær 1372 posts 3103 karma points
    Nov 16, 2010 @ 10:45
    Rune Grønkjær
    0

    Examine Indexing problems

    Hi,

    I am trying to figure out how to use umbraco examine and it looks pretty simple, I just can't get it to index my site. I have used the umbraco video tutorial.

    I can get it to create the App_Data\ExamineIndexes\DemoIndex folder and most of the files in there. But the App_Data\ExamineIndexes\DemoIndex\Index folder only have the "segments.gen" and "segments_1" files. When using that "Luke - Lucene Index Toolbox" it say "Index successfully opened" but nothing seems to be indexed.

    How and when should examine index my nodes?

    What I have:
    Umbraco 4.6 Alpha
    Examine as is in Umbraco

    ExamineIndex.config

    <ExamineLuceneIndexSets>
        <!-- The internal index set used by Umbraco back-office - DO NOT REMOVE -->
        <IndexSet SetName="InternalIndexSet" IndexPath="~/App_Data/TEMP/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>
     
        <!-- 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>
            <IndexUserFields/>
            <IncludeNodeTypes/>
            <ExcludeNodeTypes />
        </IndexSet>
       
        <IndexSet SetName="DemoIndexSet" IndexPath="~/App_Data/ExamineIndexes/DemoIndex/">
            <IndexAttributeFields>
                <add Name="id" />
                <add Name="nodeName"/>
                <add Name="nodeTypeAlias" />
                <add Name="parentID" />
            </IndexAttributeFields>
            <IndexUserFields>
                <add Name="bodyText" />
                <add Name="umbracoNaviHide"/>
            </IndexUserFields>
            <IncludeNodeTypes />
            <ExcludeNodeTypes />
        </IndexSet>
    </ExamineLuceneIndexSets>

    ExamineSettings.config
    <Examine>
      <ExamineIndexProviders>
        <providers>
          <add name="InternalIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
               supportUnpublished="true"
               supportProtected="true"
               interval="10"
               analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
          <add name="InternalMemberIndexer" type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine"
               supportUnpublished="true"
               supportProtected="true"
               interval="10"
               analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"/>
          <add      name="DemoIndexer"
                 type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine"
                 dataService="UmbracoExamine.DataServices.UmbracoDataService, UmbracoExamine"
                 indexSet="DemoIndexSet"
                 supportUnpublished="false"
                 supportProtected="false"
                 runAsync="true"
                 interval="10"
                 analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" />
        </providers>
      </ExamineIndexProviders>
      <ExamineSearchProviders defaultProvider="InternalSearcher">
        <providers>
          <add name="InternalSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
               analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
          <add name="InternalMemberSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
               analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" enableLeadingWildcards="true"/>
          <add name="DemoSearcher"
               type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
               analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"
               indexSet="DemoIndexSet"    />
        </providers>
      </ExamineSearchProviders>
    </Examine>

     

  • Tom Maton 387 posts 660 karma points
    Nov 16, 2010 @ 10:50
    Tom Maton
    0

    Have you re-published your content?

    As this should start the indexing of the nodes

    Tom

  • Rune Grønkjær 1372 posts 3103 karma points
    Nov 16, 2010 @ 10:53
    Rune Grønkjær
    0

    Yes, and that made it create the examine folder structure.

  • Tom Maton 387 posts 660 karma points
    Nov 16, 2010 @ 11:08
    Tom Maton
    2

    Try changing the following to

    <add      name="DemoIndexer" 
                 type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine"
                 dataService="UmbracoExamine.DataServices.UmbracoDataService, UmbracoExamine"
                 indexSet="DemoIndexSet"
                 supportUnpublished="false"
                 supportProtected="false"
                 runAsync="true"
                 interval="10"
                 analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" />

    to

    <add      name="DemoIndexer" 
                 type="UmbracoExamine.LuceneExamineIndexer, UmbracoExamine"
                 dataService="UmbracoExamine.DataServices.UmbracoDataService, UmbracoExamine"
                 indexSet="DemoIndexSet"
                 supportUnpublished="false"
                 supportProtected="false"
                 runAsync="true"
                 interval="10"
                 analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" />

    The change is the indexer type from a memberIndexer to a Lucene Indexer

    Tom

  • Rune Grønkjær 1372 posts 3103 karma points
    Nov 16, 2010 @ 11:13
    Rune Grønkjær
    0

    Uuh, ofcause. "UmbracoMemberIndexer"... DOH

    Thanks. everything is just dandy now. :)

Please Sign in or register to post replies

Write your reply to:

Draft