Copied to clipboard

Flag this post as spam?

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


  • Alex Wilks 27 posts 56 karma points
    Jul 04, 2013 @ 16:39
    Alex Wilks
    0

    Examine index fails to rebuild when supportUnpublished=true

    Hi guys,

    I have a site where we need to search for a node based that may be unpublished and, if found, publish it. So I have an index that doesn't support unpublished nodes which worked (found about 1200 nodes, as expected) but if I change it to support unpublished and try to rebuild the index using the Examine Management tab in the developer section, if fails with an alert saying:

    "error: The index could not be rebuilt at this time, most likely there is another thread currently writing to the index. Error: System.NullReferenceException: Object reference not set to an instance of an object"

    I'm running Umbraco 6.1.1 and my examine index set, indexer and searcher are as follows:

    Index set:

    <IndexSet SetName="WSIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/WS/">
    <IndexAttributeFields>
    <add Name="id" />
    <add Name="nodeName"/>
    </IndexAttributeFields>
    <IndexUserFields>
    <add Name="previewVideoURL"/>
    <add Name="filePath"/>
    </IndexUserFields>
    <IncludeNodeTypes>
    <add Name="FootageItem"/>
    <add Name="FootageItemDownload"/>
    </IncludeNodeTypes>
    <ExcludeNodeTypes />
    </IndexSet>

    Indexer:

    <add name="WSIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
    indexSet="WSIndexSet"
    supportUnpublished="true"
    supportProtected="false"
    analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"/>

    Searcher:

    <add name="WSSearcher"
    type="UmbracoExamine.UmbracoExamineSearcher, UmbracoExamine"
    indexSet="WSIndexSet"
    analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net"/>

    Thanks in advance everyone!

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Jul 04, 2013 @ 16:57
    Ismail Mayat
    0

    Alex,

    The only time I have seen the unpublished attribute being used is for the internal index. Are you doing anything with gatheringnode data event?

    This may be a bug you have uncovered. May need to raise on issue tracker.

    Regards

    Ismail

  • Alex Wilks 27 posts 56 karma points
    Jul 04, 2013 @ 17:15
    Alex Wilks
    0

    Thanks for looking Ismail. Raised an issue here: http://issues.umbraco.org/issue/U4-2463

  • Dan White 206 posts 510 karma points c-trib
    Aug 21, 2013 @ 04:46
    Dan White
    0

    @Alex,

    Did you ever find a solution to this? I'm currently have the same issue. Running 6.1.3, started at 6.0.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft