Copied to clipboard

Flag this post as spam?

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


  • Anton Oosthuizen 206 posts 486 karma points
    Feb 28, 2013 @ 19:04
    Anton Oosthuizen
    0

    Examine SearchProvider returns null umbraco 6

    Hi

    I'm getting an NullReferenceExeption when I try to Examin search

        var Searcher = ExamineManager.Instance.SearchProviderCollection["InternalMemberIndexSet"];

    Thanks in advance

  • Anton Oosthuizen 206 posts 486 karma points
    Mar 01, 2013 @ 06:50
    Anton Oosthuizen
    0

    Here is the code 

    @using Examine;

    @using Examine.LuceneEngine.SearchCriteria;

    @using Examine.SearchCriteria;

    @using UmbracoExamine;

    @using System.Linq;

    @using System.Xml.Linq;

     

    @using umbraco.MacroEngines

    @inherits umbraco.MacroEngines.DynamicNodeContext

    @* Get the search term from query string *@

    @{var searchTerm = Request.QueryString["q"];}

    @{

       var Searcher = ExamineManager.Instance.SearchProviderCollection["InternalMemberIndexSet"];

       var searchCriteria = Searcher.CreateSearchCriteria(BooleanOperation.Or);

    }

     

    And The Config 

     

     

  • Anton Oosthuizen 206 posts 486 karma points
    Mar 01, 2013 @ 06:54
    Anton Oosthuizen
    0

    And it happens on Internal InternalMember and External Sets

     

  • Anton Oosthuizen 206 posts 486 karma points
    Mar 02, 2013 @ 11:16
    Anton Oosthuizen
    0

    Anyone. What more information do you need to assist me 

     

  • Mike Chambers 636 posts 1253 karma points c-trib
    Mar 04, 2013 @ 11:35
    Mike Chambers
    0

    I just updated to 4.11.5 and had noticed that the examinIndex.config had changed... the internalindex now includes all fields not the subset as in previous releases//

    could that be associated to your issue as I notice you have the prev limited index?

    NEW

    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/"/>
    
      <!-- 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>
      </IndexSet>
    
      <!-- Default Indexset for external searches, this indexes all fields on all types of nodes-->
      <IndexSet SetName="ExternalIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/External/" />
    </ExamineLuceneIndexSets>

    OLD

    <?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>
    
      <!-- Default Indexset for external searches, this indexes all fields on all types of nodes-->
      <IndexSet SetName="ExternalIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/External/" />
    </ExamineLuceneIndexSets>

     

  • Anton Oosthuizen 206 posts 486 karma points
    Mar 04, 2013 @ 16:48
    Anton Oosthuizen
    0

    Thanks for your reply. No luck. I'm about to loose my mind. Cant see why this doesn't work

    Trying a clean install of umbraco see if I can recreate the problem

     

     

  • Anton Oosthuizen 206 posts 486 karma points
    Mar 06, 2013 @ 21:13
    Anton Oosthuizen
    0

    Tried a clean install of umbraco 6 and I get the same error.

     

  • Anton Oosthuizen 206 posts 486 karma points
    Mar 08, 2013 @ 07:25
    Anton Oosthuizen
    0

    Anyone??

  • Anton Oosthuizen 206 posts 486 karma points
    Mar 08, 2013 @ 08:52
Please Sign in or register to post replies

Write your reply to:

Draft