Yavor Simeonov
Forum Replies Created
-
Thanks once again. I changed the code but the results became inaccurate again. Yes, accurate in terms of date, but not in terms of relevance. Is it possible to do this at the same time? We were close.
Only exact search hits, sorted from most recently added posts to older. I hope I expressed myself correctly.
If I understand you correctly, even though I don’t have deep PHP knowledge I should add this code:
add_filter( ‘relevanssi_hits_filter’, ‘rlv_bucket_sorting’ );
function rlv_bucket_sorting( $hits ) {
$rest_of_the_posts = array();
foreach ( $hits[0] as $_post ) {
$post_object = relevanssi_get_an_object( $_post )[‘object’];if } elseif ( date( 'Y' ) === date( 'Y', strtotime( $post_object->post_date_gmt ) ) ) { } else { $rest_of_the_posts[] = $_post; }
}
$hits[30] = array_merge( $rest_of_the_posts );
return $hits;
}Hello again. I added a hook for exact_match_bonus and the search seems to improve. If there is a way to show more exact match results, please share. We also need to group these results by date, starting with the most recently added. I looked through the hooks on your site but couldn’t figure out which one would work in this case.
Thank you for your time. You were very helpful. Be healthy!
Thank you for the detailed information. I’ll share my doubts with you – the only application that can have an impact over “orderby” I think is “Simple Custom Post Order”, which allows to reorder posts /first, second, third, etc./. If I am right, is there an option for compatibility with Relevanssi?
I understand that you are recommending not to use Elementor template for search results as it does not provide relevant results, instead of Relevanssi? Now, do you think the search results are satisfactory with the added code?
Hello again. I added the code as the search is relatively more relevant now. But that’s how it was set up – order by – relevance. However, another problem appeared – some elements break when previewing the search. Attach photos. When I remove the code, no such breaks are shown. I’ve also captured the error the console gives me for convenience if you think that would be helpful.
Hello, thank you for your quick and accurate reply. I delayed my feedback as it was necessary to do further testing of my search results. It turned out that this was not the described search problem. I changed the settings and removed a conflicting app. Now a challenge is these search queries that I try in Admin Search to visualize them in the front end as well. For example – a search for “отец Иван” doesn’t work for me like in the Admin search. Is it a setup issue or am I looking for a conflict somewhere? With similar searches, for example, “екзарх Йосиф” I get correct results, and for “отец Иван” the first result with both words is my tenth and eleventh result. I am attaching screenshots. I neglected to mention that both of these different searches are of the same type – they are made up of church rank and name.
Forum: Plugins
In reply to: [Simple Custom Post Order] Incorrect search resultsHello again. We have analyzed this situation and it turns out the following. When we installed your application we did not use the reset option. Thus, all places where publications are visualized were loaded in order – back-to-front, by date. We reversed this order, via the builder settings, and now everything is fine. However, it turns out that the search results are also loaded backwards and forwards, which is why they come out as incorrect. The first results are the least relevant, relative to the search, and the most accurate results are at the back. Here it is if we fix everything will be fine and it affects your app. Other search applications appeared to work correctly.
Forum: Plugins
In reply to: [Simple Custom Post Order] Incorrect search resultsHello, the main problem we noticed is that the “AND” function of the “Relevanssi” search app is blocked, which by disabling your great plugin works. How can we make the most of our search and your plugin?
Hello, we are already communicating with you via email regarding this issue. Thank you and I await your reply.
I will try and let you know more, thank you
When I press the Synchronization button, I get the following error: Warning: 1 file has been skipped because it’s 150.2 KB. (Max is 150 KB). Check all strings are present before saving. Is it possible that certain phrases are not being translated because of this?
This will make it easier for many users and reduce this type of question. Thanks