Copied to clipboard

Flag this post as spam?

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


  • David Armitage 414 posts 1655 karma points
    Sep 25, 2020 @ 05:14
    David Armitage
    0

    Umbraco 8 Examine Sorting Issues with possible Lucene keywords

    Hi Guys,

    I had a strange error today that my sorting wasn't working for one specific record. I was sorting staff profiles by firstname.

    All was working ok except for one staff name.

    Staff Name: Will

    If I added any letter I figure out the sorting works again. I made a stab in the dark and wondered if 'will' was a lucene keyword. I am guessing it is since I tried changing the staff name to 'Or' or 'And' and this has the same effect. The sorting did nothing on this record and simply added it to the top of the results.

    I was wondering if anyone else has experienced this issue and have a work around.

    I think I am going to try.

    1. Adding a new sortable field in IndexProviderTransformingIndexValues

    2. I am going to make this field up of the firstname + "x"

    3. Then use this to do the sorting on.

    I guess this will work because there will no longer we and names for exactly match a possible keyword.

    Regards

    David

  • 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