Examine index issue where ScoreDocs fields are null
I'm having an issue with my Examine Index when sorting results where some of the ScoreDocs fields are returning as null. The 2 in question here are 'Zeus' and 'Poseidon'. Republishing these nodes puts them into the correct order but if I then Rebuild the index the issue reoccurs.
By default examine well to be more specific lucene orders by score. If you order by any other field then the will be set to NaN as you can see in your screen shot. I am not sure why it does whether its lucene that does it but my guess is because you are setting the sort it ignores it.
Examine index issue where ScoreDocs fields are null
I'm having an issue with my Examine Index when sorting results where some of the ScoreDocs fields are returning as null. The 2 in question here are 'Zeus' and 'Poseidon'. Republishing these nodes puts them into the correct order but if I then Rebuild the index the issue reoccurs.
Any help appreciated!
Jeremy,
By default examine well to be more specific lucene orders by score. If you order by any other field then the will be set to NaN as you can see in your screen shot. I am not sure why it does whether its lucene that does it but my guess is because you are setting the sort it ignores it.
Regards
Ismail
More reading https://stackoverflow.com/questions/20541188/explain-scoring-in-lucene-while-sorting-involved
I ended up sorting using LINQ:
is working on a reply...