Excerpt of results not show

  • matteo.cattelan
    Participant
    7 months ago #35601

    Hi,
    if the search query match the title of post but not in content, in list of results shortcode show only the title.
    Is there a way to always force the excerpt to show ?

    Thanks a lot

    wpsolr
    Keymaster
    7 months ago #35603

    This should be like you describe: the highlighted title or description are show. If there are none, the original title and excerpt are displayed.

    Can you describe what are your WPSOLR settings: search engine, and add-ons activated?

    matteo.cattelan
    Participant
    7 months ago #35604

    My Search engine is OpenSearch i have this extensions configured: Premium, Polylang, Cron.
    what setting do you want to know?

    wpsolr
    Keymaster
    7 months ago #35605

    I’ve just tested with OpenSearch.

    Can you share here a screenshot of the search page with its troubled results?

    wpsolr
    Keymaster
    7 months ago #35606

    (By the way, we have a new series of self-signed certificate SSL configuration, and the first one is for OpenSearch: https://github.com/eostis-sarl/wpsolr-opensearch-self-signed-certificates)

    matteo.cattelan
    Participant
    7 months ago #35607

    https://www.neuralword.com/it/search?q=Perch%C3%A9

    You can see there are the results without description.

    Many Thanks

    wpsolr
    Keymaster
    7 months ago #35608

    Thanks. This url is not the standard search archive url ‘/?s=’. How is this page built?

    matteo.cattelan
    Participant
    7 months ago #35609

    This frontend have a vuejs and axios that call the page custom-results, in this page there is the wpsolr shortcode. In axios call i pass correctly ‘s’ parameter.

    matteo.cattelan
    Participant
    7 months ago #35610

    I had already opened a ticket because did you mean doesn’t work either

    wpsolr
    Keymaster
    7 months ago #35611

    Unfortunately, the WPSOLR search template shortcode is deprecated.

    matteo.cattelan
    Participant
    7 months ago #35612

    I understand it’s deprecated but it hasn’t been deprecated for 5 years so I would expect assistance on that too.

    matteo.cattelan
    Participant
    7 months ago #35613

    if you show me another method to call wpsolr via ajax I would be very grateful

    wpsolr
    Keymaster
    7 months ago #35614

    In fact, it is deprecated for many years. But let’s see what we can do to help you.

    The issue with the shortcode is that it does not call WP_Post to get additional informations, like the default excerpt. It relies only on the information returned by the search engine, which for performance reason does not return descriptions or excerpts.

    Let me dig in the code…

    matteo.cattelan
    Participant
    7 months ago #35615

    Ok many many thanks.

    matteo.cattelan
    Participant
    7 months ago #35616

    Probably the mistake is in this file:
    wpsolr-pro/wpsolr/core/classes/engines/class-wpsolr-abstractsearchclient-root.php
    In this function:
    protected function get_results_results

    tell me if you found anything, thanks again

Viewing 15 posts - 1 through 15 (of 24 total)

You must be logged in to reply to this topic.