Copied to clipboard

Flag this post as spam?

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


  • John Seto 37 posts 98 karma points
    Oct 22, 2012 @ 14:25
    John Seto
    0

    Examine not indexing (4.9)

    Hello All, I've almost completed a site and all that remains is getting search working, which is proving to be a PITA. I can see what I think are the Indexes created but they're empty. To keep it simple I am just indexing 2 fields.

    I'm using Umbraco 4.9. I've checked the DLL's are the most up-to-date ones.

    ExamineIndex.config

       <IndexSet SetName="CCGIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/CCG/">
       <!-- fields specific to Umbraco -->
         <IndexAttributeFields>
            <add Name="id" /> <!-- required -->
            <add Name="nodeName" /> <!-- required -->
            <add Name="updateDate" />
            <add Name="writerName" />
            <add Name="path" />
            <add Name="nodeTypeAlias" /> <!-- required -->
         </IndexAttributeFields>
         <!-- fields that you have defined in your various document types -->
         <IndexUserFields>
            <add Name="body" />
            <add Name="title" />
         </IndexUserFields>
         <IncludeNodeTypes>
        <add Name="textpage"/>
         </IncludeNodeTypes>
         <!-- specify any document types that you do NOT want to be indexed -->
         <ExcludeNodeTypes />
    </IndexSet>

    ExamineSettings.config

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

     

     

    <add name="CCGSearcher" type="UmbracoExamine.LuceneExamineSearcher, UmbracoExamine" 
    analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" indexSet="CCGIndexSet"/>

    After making the above changes I see the following files created:

     

    ~/App_Data/TEMP/ExamineIndexes/CCG/Index/segments.gen - 0.02KB
    ~/App_Data/TEMP/ExamineIndexes/CCG/Index/segments_2 - 0.02KB

    The Umbraco Logs I see this:

    [UmbracoExamine] Adding examine event handlers for index providers: 4

    I downloaded the segments to look in LUKE nothing in them.

    Can anyone help? This is really frustrating me.

     

Please Sign in or register to post replies

Write your reply to:

Draft