Excerpt of results not show
- matteo.cattelanParticipant1 year 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
- This topic was modified 1 year ago by matteo.cattelan.
matteo.cattelanParticipant1 year ago #35604My Search engine is OpenSearch i have this extensions configured: Premium, Polylang, Cron.
what setting do you want to know?wpsolrKeymaster1 year 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.cattelanParticipant1 year ago #35607https://www.neuralword.com/it/search?q=Perch%C3%A9
You can see there are the results without description.
Many Thanks
matteo.cattelanParticipant1 year ago #35609This 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.cattelanParticipant1 year ago #35610I had already opened a ticket because did you mean doesn’t work either
matteo.cattelanParticipant1 year ago #35612I understand it’s deprecated but it hasn’t been deprecated for 5 years so I would expect assistance on that too.
matteo.cattelanParticipant1 year ago #35613if you show me another method to call wpsolr via ajax I would be very grateful
wpsolrKeymaster1 year ago #35614In 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.cattelanParticipant1 year ago #35615Ok many many thanks.
matteo.cattelanParticipant1 year ago #35616Probably the mistake is in this file:
wpsolr-pro/wpsolr/core/classes/engines/class-wpsolr-abstractsearchclient-root.php
In this function:
protected function get_results_resultstell me if you found anything, thanks again
You must be logged in to reply to this topic.