Copied to clipboard

Flag this post as spam?

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


  • Eran Meir 401 posts 543 karma points
    Jan 02, 2011 @ 19:35
    Eran Meir
    0

    Examine Index problem

    hey, i'm getting error from Examine

    The indexSet specified for the LuceneExamineIndexer provider does not exist

    ExamineSettings

    <Examine>
      <ExamineIndexProviders>
        <providers>
            <add name="AfKnowsIndexer" type="UmbracoExamine.LuceneExamineIndexer, UmbracoExamine"
               runAsync="true"
               supportUnpublished="false" 
               supportProtected="false" 
               interval="10"
               indexSet="AfKnowsIndexSet"
               analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
        </providers>
      </ExamineIndexProviders>
      <ExamineSearchProviders defaultProvider="InternalSearcher">
        <providers>
          <add name="InternalSearcher" type="UmbracoExamine.LuceneExamineSearcher, UmbracoExamine"
               analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"/>
          <add name="InternalMemberSearcher" type="UmbracoExamine.LuceneExamineSearcher, UmbracoExamine"
               analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" enableLeadingWildcards="true"/>
            <add name="AfKnowsSearcher" type="UmbracoExamine.LuceneExamineSearcher, UmbracoExamine"
                 analyzer="Lucene.Net.Analysis.WhitespaceAnalyzer, Lucene.Net"
                 indexSet="AfKnowsIndexSet" />
        </providers>
      </ExamineSearchProviders>
    </Examine>

    ExamineIndex


    <ExamineLuceneIndexSets>

        <IndexSet SetName="AfKnowsIndexSet" IndexPath="~/App_Data/ExamineIndexes/AfKnowsIndex/">
            <IndexAttributeFields>
                <add Name="id" />
                <add Name="nodeName" />
                <add Name="parentId" />
                <add Name="nodeTypeAlias" />
            </IndexAttributeFields>
            <IndexUserFields>
                <add Name="pageTitle" />
                <add Name="alternatePageTitle" />
                <add Name="bodyText" />
                <add Name="postDate" EnableSorting="true" Type="DateTime" />
                <add Name="umbracoNaviHide"/>
            </IndexUserFields>
            <IncludeNodeTypes>
                <add Name="BlogPost" />
            </IncludeNodeTypes>
            <ExcludeNodeTypes />
        </IndexSet>
    </ExamineLuceneIndexSets>

    i couldn't find an answer, please help.

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jan 03, 2011 @ 07:02
    Aaron Powell
    0

    What version of Umbraco are you using?

    What version of Examine are you using?

  • Eran Meir 401 posts 543 karma points
    Jan 03, 2011 @ 07:19
    Eran Meir
    0

    Umbraco 4.5.2, Examine: The version that comes with Umbraco

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jan 03, 2011 @ 09:05
    Aaron Powell
    0

    Can you post the full stack trace?

  • Eran Meir 401 posts 543 karma points
    Jan 03, 2011 @ 09:12
    Eran Meir
    0

    Error loading IApplication: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Examine.ExamineManager' threw an exception. ---> System.Configuration.ConfigurationErrorsException: The indexSet specified for the LuceneExamineIndexer provider does not exist (ExamineSettings.config line 12) ---> System.ArgumentException: The indexSet specified for the LuceneExamineIndexer provider does not exist     at UmbracoExamine.LuceneExamineIndexer.Initialize(String name, NameValueCollection config)     at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)     --- End of inner exception stack trace ---     at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)     at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)     at Examine.ExamineManager.LoadProviders()     at Examine.ExamineManager..ctor()     at Examine.ExamineManager..cctor()     --- End of inner exception stack trace ---     at Examine.ExamineManager.get_Instance()     at UmbracoExamine.UmbracoEventManager..ctor()     --- End of inner exception stack trace ---     at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)     at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)     at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)     at System.Activator.CreateInstance(Type type, Boolean nonPublic)     at umbraco.BusinessLogic.Application.RegisterIApplications()

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jan 03, 2011 @ 09:36
    Aaron Powell
    0

    Thought so, the problem is the Type attribute on the publishedDate property. This is not in the 4.5.2 release of Examine, it is in the release coming in Juno (4.6).

    You can download Examine's out of band release and use that instead if you require type setting

  • Eran Meir 401 posts 543 karma points
    Jan 03, 2011 @ 09:52
    Eran Meir
    0

    for now i removed the postDate, thank you !

  • Carsten Johannesen 35 posts 55 karma points
    Mar 23, 2011 @ 10:41
    Carsten Johannesen
    0

    I get a similar error in the Umbraco Log. However I have no special date type included:

    Error loading IApplication: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Examine.ExamineManager' threw an exception. ---> System.Configuration.ConfigurationErrorsException: The indexSet specified for the LuceneExamineIndexer provider does not exist (C:\inetpub\umbracoTest\config\ExamineSettings.config line 25) ---> System.ArgumentException: The indexSet specified for the LuceneExamineIndexer provider does not exist     at Examine.LuceneEngine.Providers.LuceneIndexer.Initialize(String name, NameValueCollection config) in C:\Users\Shannon\Documents\Visual Studio 2008\Projects\Examine\Examine\LuceneEngine\Providers\LuceneIndexer.cs:line 118     at UmbracoExamine.BaseUmbracoIndexer.Initialize(String name, NameValueCollection config)     at UmbracoExamine.UmbracoContentIndexer.Initialize(String name, NameValueCollection config)     at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)     --- End of inner exception stack trace ---     at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)     at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)     at Examine.ExamineManager.LoadProviders() in C:\Users\Shannon\Documents\Visual Studio 2008\Projects\Examine\Examine\ExamineManager.cs:line 53     at Examine.ExamineManager..ctor() in C:\Users\Shannon\Documents\Visual Studio 2008\Projects\Examine\Examine\ExamineManager.cs:line 18     at Examine.ExamineManager..cctor() in C:\Users\Shannon\Documents\Visual Studio 2008\Projects\Examine\Examine\ExamineManager.cs:line 32     --- End of inner exception stack trace ---     at Examine.ExamineManager.get_Instance() in C:\Users\Shannon\Documents\Visual Studio 2008\Projects\Examine\Examine\ExamineManager.cs:line 28     at umbraco.presentation.umbraco.Search.ExamineEvents..ctor()     --- End of inner exception stack trace ---     at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)     at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)     at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)     at System.Activator.CreateInstance(Type type, Boolean nonPublic)     at umbraco.BusinessLogic.Application.RegisterIApplications()

    ExamineIndex.config

     

    <?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/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/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>
     
      <!-- Index der skal bruges til search af artikel data på tv2bornholm -->
      <IndexSet SetName="TV2BTekstIndexSet" IndexPath="~/App_Data/ExamineIndexes/TV2BTekst/">
        <IndexAttributeFields>
          <add Name="id" />
          <add Name="nodeName"/>
          <add Name="nodeTypeAlias" />
          <add Name="updateDate" />
        </IndexAttributeFields>
        <IndexUserFields/>
         <!-- <add Name="nyhedslisteMakro" /> -->
        <IncludeNodeTypes/>
        <ExcludeNodeTypes />

      </IndexSet>
    </ExamineLuceneIndexSets>

  • Carsten Johannesen 35 posts 55 karma points
    Mar 23, 2011 @ 11:05
    Carsten Johannesen
    0

    oops sorry my bad I had wrongly named the IndexSet i referenced.

    So problem solved (I think)

Please Sign in or register to post replies

Write your reply to:

Draft