Random sort

  • kuro19
    Participant
    2 months, 4 weeks ago #37570

    Hi,

    There is random sort and it used to work on Apache solr. After switch to Elasticsearch it’s no longer working, I don’t see error message so no idea how to debug this!

    Can you please recheck?

    Thank you.

    wpsolr
    Keymaster
    2 months, 4 weeks ago #37571

    It could be due to https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-random:

    It was possible to set a seed without setting a field, but this has been deprecated as this requires loading fielddata on the _id field which consumes a lot of memory.

    It will be checked and eventually fixed on WPSOLR 23.6

    kuro19
    Participant
    2 months, 4 weeks ago #37582

    Switched from Solr to Elasticsearch and the function just stop working so kind of unexpected! I’m looking forward to the update.

    Thank you.

    wpsolr
    Keymaster
    1 month, 1 week ago #38492

    WPSOLR 23.6 is ready.

    kuro19
    Participant
    1 month, 1 week ago #38507

    Hi,

    The random sort returns the same result as I tested on 23.6.

    wpsolr
    Keymaster
    1 month, 1 week ago #38508

    Randomness is across sessions: different visitors will see different results. But a visitor will see the same results.

    Please try with a new session, like with another browser or in incognito mode.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.