Get results array for data indexed by wp solr
- prakashreddy.imduriParticipant2 years, 1 month ago #30793
Hi,
Is there any code to echo the data indexed by wp solr plugin, to check the array and fields indexed for each product.wpsolrKeymaster2 years, 1 month ago #30794Indeed:
<?php use wpsolr\core\classes\WPSOLR_Events; add_filter( WPSOLR_Events::WPSOLR_FILTER_SOLARIUM_DOCUMENT_FOR_UPDATE, 'debug_indexed_data', 99, 5 ); function debug_indexed_data( array $document_for_update, $solr_indexing_options, $post, $attachment_body, $search_engine_client ) { /* output $document_for_update here */ return $document_for_update; }
prakashreddy.imduriParticipant2 years, 1 month ago #30795I added code but not able to see any data. Where can I see the response, I just want to see this on search page for debugging, preferably in frontend …
prakashreddy.imduriParticipant2 years, 1 month ago #30797Actually, I want the array to display some extra code in frontend.
prakashreddy.imduriParticipant2 years, 1 month ago #30799Can’t I get the data for normal frontend use, without debug?
prakashreddy.imduriParticipant2 years, 1 month ago #30800I mean the actual data with which wp solr is building the results, Can I access the array in frontend, to extend some lfunctionality?
prakashreddy.imduriParticipant2 years, 1 month ago #30806Any variable or function to access data for results which the wp solr plugin is using, to add filters on it ?
prakashreddy.imduriParticipant2 years, 1 month ago #30808we added a custom date range filter, I need to get the count for the date ranges, so that we can hide the facet list item if count is zero.
wpsolrKeymaster2 years, 1 month ago #30809As mentioned on https://www.wpsolr.com/forums/topic/any-filter-for-custom-price-range-gap/, I cannot help on customizing WPSOLR with a new facet layout.
You must be logged in to reply to this topic.