Copied to clipboard

Flag this post as spam?

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


  • Indridi 5 posts 25 karma points
    Mar 13, 2011 @ 21:01
    Indridi
    0

    Examine indexes are created but contain no entries

    Hi

    I am relatively new to umbraco but find the system terrific.  However I am finding a big problem with the indices. 

    I have created an index to use for search locally and it works fine but when I publish to my web server the indices are created but contain no entries(I verified with Luke).

    these are my index sets

    <?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/">
          <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>
      <!-- Indexing N ews Items -->
      <IndexSet SetName="NewsItemIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/NewsItems/">
        <IndexAttributeFields>
          <add Name="id" />
          <add Name="nodeName" />
          <add Name="nodeTypeAlias" />
          <add Name="parentID" />    
        </IndexAttributeFields>
        <IndexUserFields>
          <add Name="pageHeading" />
          <add Name="pageContent" />
          <add Name="newsAuthor" />
          <add Name="newsSummary" />
        </IndexUserFields>
        <IncludeNodeTypes/>  
        <ExcludeNodeTypes />
      </IndexSet>
    </ExamineLuceneIndexSets>

    And these are my Providers

    <?xml version="1.0"?>
    <!--
    Umbraco examine is an extensible indexer and search engine.
    This configuration file can be extended to add your own search/index providers.
    Index sets can be defined in the ExamineIndex.config if you're using the standard provider model.

    More information and documentation can be found on CodePlex: http://umbracoexamine.codeplex.com
    -->
    <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="NewsItemIndexer" type="UmbracoExamine.UmbracoMemberIndexer, UmbracoExamine"
              supportUnpublished="false"
              supportProtected="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="NewsItemSearcher" type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
                analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" enableLeadingWildcards="true"/>
        </providers>
      </ExamineSearchProviders>

    </Examine>

    Any thoughts?

    IndriĆ°i

     

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Mar 13, 2011 @ 22:02
    Aaron Powell
    0

    Is there anything in the Queue folder?

    Try setting the indexer to runAsync="false" and then publish a node, this will enable access to the umbracoLog table for Examine and you can see if any errors happen

  • Indridi 5 posts 25 karma points
    Mar 14, 2011 @ 02:12
    Indridi
    0

    A file containing the following

     

    <?xml version="1.0" encoding="utf-16"?>
    <dictionary>
      <item>
        <key>
          <string>__IndexType</string>
        </key>
        <value><![CDATA[member]]></value>
      </item>
    </dictionary>

  • Indridi 5 posts 25 karma points
    Mar 14, 2011 @ 21:54
    Indridi
    0

    Changing to disable Async solved the problem.  I guess that will have to do for now

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Mar 14, 2011 @ 23:06
    Aaron Powell
    0

    We don't advise running it without async on production systems as it can slow down a system.

    Turning on async will help you diagnose errors though, as I said it allowed Examine to write to the Umbraco log API (which reliese on the HttpContext and why it doesn't work in async mode).

  • Indridi 5 posts 25 karma points
    Mar 16, 2011 @ 23:16
    Indridi
    0

    Sorry for the late reply. 

    I don't see any errors in the log and the indexes which are running async still don't get created and the log doesn't report any problems.  Any ideas what can cuase this?

  • Indridi 5 posts 25 karma points
    Mar 20, 2011 @ 23:50
    Indridi
    0

    Now even with runAsync set to false nothing happens.  It only managed to create an index once but nothing more happens.  I am querying the table umbracoLog but I don't see any errors there.

     

    I tryed creating a different index but I still don't get anything. 

  • Simon steed 376 posts 688 karma points
    May 03, 2011 @ 13:44
    Simon steed
    0

    I'm getting similar problems - built two indexes, one for a site wide search and another for a specific node with it's children and they are not working correctly. Occasionally the site wide works but then just stops pulling results, the node specific does not work at all

    Luke reveals that most (but not all) of my fields are being indexed, not sure why nothing is being returned!

    Some searches are working however which indicates to me that some of the fields are not being indexed correctly or the filters are not working correctly

    HELP!

    Si

Please Sign in or register to post replies

Write your reply to:

Draft