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
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?
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?
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:
Examine - Sort stopped working after upgrade to 4.11.9
Hi
I have set up Examine to sort on the nodeName property by adding
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
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
Cheers Jan
I did merge them... perhaps I made a mistake...
I'll compare again
Thanks
Jules
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
is working on a reply...