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 369 posts 1561 karma points
    25 days ago
    David Armitage

    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.



Please Sign in or register to post replies

Write your reply to: