Copied to clipboard

Flag this post as spam?

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


  • Jules 205 posts 448 karma points
    Jun 03, 2013 @ 12:53
    Jules
    0

    Examine - Sort stopped working after upgrade to 4.11.9

    Hi

    I have set up Examine to sort on the nodeName property by adding

    <add Name="nodeName" EnableSorting="true" />

    to the ExamineIndex.config file.

    I would expect this to add the field __Sort_nodeName to the index.

    All of this was working fine in 4.11.4 but when I upgraded to 4.11.9 and rebuilt the index, it stopped working giving a key not present error.  On looking into the code, it was failing on

    IEnumerable<SearchResult> searchResults = searcher.Search(query).OrderBy(x => x.Fields["__Sort_nodeName"]);

    And indeed, the __Sort_nodeName was empty.

    However, when checking in Luke, although the  __Sort_nodeName field looks as though it is present and has been populated on the Overview page as in the following screenshot

    when I navigate the index by document it is not visible on any document

    Furthermore, when doing a search using Luke, the __Sort_nodeName field is shown to be empty. 

    I am not sure how to solve this one - it seems as though something is wrong in the creation and population of the __Sort_nodeName field.

    Would really appreciate some help, any suggestions anyone?

    Cheers

    Jules

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jun 03, 2013 @ 18:17
    Jan Skovgaard
    0

    Hi Jules

    When you did the upgrade did you merge the config files in the /config/ folder as well? If I remember correctly there are some changes made in the examineindex config files - perhaps that has something to do with this?

    /Jan

  • Jules 205 posts 448 karma points
    Jun 03, 2013 @ 18:31
    Jules
    0

    Cheers Jan

    I did merge them... perhaps I made a mistake...

    I'll compare again

    Thanks

    Jules

  • Jules 205 posts 448 karma points
    Jun 03, 2013 @ 23:35
    Jules
    0

    Have now checked and config files were merged properly - no changes to examinesettings.config and examineindex.config is basically the same file as the default file provided in 4.11.9 with an extra indexset:

        <IndexSet SetName="BcmpaMemberIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/BcmpaMember/">
            <IndexAttributeFields>
                <add Name="id" />
                <add Name="nodeName" EnableSorting="true" />
                <add Name="updateDate" />
                <add Name="writerName" />
                <add Name="path" />
                <add Name="nodeTypeAlias" />
                <add Name="parentID" />
            </IndexAttributeFields>
            <IndexUserFields>
                <add Name="umbName"  />
                <add Name="county" />
                <add Name="postCode" />
                <add Name="industrySectors" />
                <add Name="contractPackingServices" />
                <add Name="contractManufacturingServices" />
                <add Name="fillingServices" />
                <add Name="fulfilmentServices" />
                <add Name="logisticsServices" />
                <add Name="accreditations" />
            </IndexUserFields>
            <IncludeNodeTypes>
                <add Name="MemberPage" />
            </IncludeNodeTypes>
        </IndexSet>

    Problem persists unfortunately

    Regards

    Jules

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies