Forum Replies Created
-
wpsolrKeymaster3 years, 5 months ago in reply to: Modify Lat/Long Value based on Conditions using Hook #33156
I need to pass as lat and long to search, Instead of the indexed acf geolocation field value? Can you help me with the hook ?
You can use the hook
WPSOLR_Events::WPSOLR_FILTER_POST_CUSTOM_FIELDSto fill your custom field with your own lat,long values. An example can be found in file wpsolr-pro/wpsolr/pro/extensions/woocommerce/class-wpsolr-plugin-woocommerce.phpSuppose a post should come on top for 3 Lat/Longs values
I’m not sure it is possible to have an array of lat,long values in an indexed field.
wpsolrKeymaster3 years, 5 months ago in reply to: Using custom facets.twig throws an error #33154WPSOLR do not provide a way to update the facets twig templates.
You can only use CSS.
wpsolrKeymaster3 years, 5 months ago in reply to: WPSOLR – One hour of remote chat #33141Thanks for contacting us. I noticed your order indeed, which I had refunded because this offer does not apply anymore.
Can you describe what you would like from WPSOLR?
wpsolrKeymaster3 years, 5 months ago in reply to: Exclude Products to index based on ACF Field #33138WPSOLR_Events::WPSOLR_FILTER_SQL_QUERY_STATEMENT can be used to filter indexed data: /forums/reply/30869/
wpsolrKeymaster3 years, 5 months ago in reply to: Slow keyword search #33135It could also mean you current search page is not the standard WP archive. WPSOLR replaces archives selected in screen 2.1: search, taxonomies, tags, … and shop for WooCommerce.
wpsolrKeymaster3 years, 5 months ago in reply to: Slow keyword search #33133In the monitor, you should see the origin of the SQL query: the plugin or wp core file.
wpsolrKeymaster3 years, 5 months ago in reply to: Slow keyword search #33131You should not see this SQL query. Where does it come from in the query monitor trace?
wpsolrKeymaster3 years, 5 months ago in reply to: Slow keyword search #33128You should also try without the other plugins.
wpsolrKeymaster3 years, 5 months ago in reply to: Slow keyword search #33127Refresh the page (F5). I checked, your subscription’s deactivation worked on our license backend.
wpsolrKeymaster3 years, 5 months ago in reply to: Slow keyword search #33106Deactivate your license, then reactivate it.
wpsolrKeymaster3 years, 5 months ago in reply to: _invokeAsArray needed on all pages ? Seems slowing down site #33096What makes you think it is called from WPSOLR?
wpsolrKeymaster3 years, 5 months ago in reply to: Manually Send WC Product ids to Index #33094You can configure a cron job to reindex in the background
wpsolrKeymaster3 years, 5 months ago in reply to: Title Ascending order only for category pages #33087You can use this hook:
use wpsolr\core\classes\WPSOLR_Events; add_filter( WPSOLR_Events::WPSOLR_FILTER_SORT_FIELDS, 'wpsolr_filter_sort_fields', 10, 1 ); public function wpsolr_filter_sort_fields($default_sort_fields) { // If current page is a category, then modify default_sort_fields (...) return $default_sort_fields; // array of field names }wpsolrKeymaster3 years, 5 months ago in reply to: Manually Send WC Product ids to Index #33086Just update the published date in the database with current time for the posts to be indexed. They will appear in the reindex batch list.
wpsolrKeymaster3 years, 5 months ago in reply to: Manually Send WC Product ids to Index #33079No need to do anything.
When a post is published, it will be indexed in real-time, but also part of the next batch incremental indexing, as its publication date will be above the watermark (the watermark, in yellow in your screenshot, is the publication date of the last indexed post).