Forum Replies Created
-
wpsolrKeymaster6 years, 2 months ago in reply to: WooCommerce 4.4.1 Archive Pages not showing products #21417
Did you select your product categories in tab 2.2 (click on “product”, then on “taxonomies”)?
- This reply was modified 6 years, 2 months ago by wpsolr.
wpsolrKeymaster6 years, 2 months ago in reply to: cannot build index #21413Fine.
Please create another topic for the new issue.
wpsolrKeymaster6 years, 2 months ago in reply to: cannot build index #21411Nothing in debug.log?
wpsolrKeymaster6 years, 2 months ago in reply to: cannot build index #21409Can you switch to an earlier version?
wpsolrKeymaster6 years, 2 months ago in reply to: cannot build index #21407What is your PHP version?
wpsolrKeymaster6 years, 2 months ago in reply to: High Availability with WPSolr using Solr as search engine #21398WPSOLR works also with SolrCloud indeed. You can install your SolrCloud cluster, it will work as-is with WPSOLR.
wpsolrKeymaster6 years, 2 months ago in reply to: Customization to index files from wp downloads manager to Elasticsearch #21380Does the custom field on your post type contain the PDF content, or a link to the PDF content?
wpsolrKeymaster6 years, 2 months ago in reply to: Customization to index files from wp downloads manager to Elasticsearch #21378WPSOLR already indexes custom post types and attachment files.
wpsolrKeymaster6 years, 2 months ago in reply to: Simple Elastic cloud setup #21377Which WordPress hosting provider is it?
wpsolrKeymaster6 years, 2 months ago in reply to: Simple Elastic cloud setup #21374Can you cURL your endpoint from your WP server (ssh)?
You can also try without the port number (:9243). Some WP hostings block all ports but 443.
wpsolrKeymaster6 years, 2 months ago in reply to: Cross-site search and package pricing #21372No, it is not possible.
wpsolrKeymaster6 years, 2 months ago in reply to: Show the search results by tags, categories, post types #21371No, it cannot.
wpsolrKeymaster6 years, 2 months ago in reply to: Configuring the content and metadata (pmisc) to display in search results #21368So, you are working on template /wp-content/plugins/wpsolr-pro/wpsolr-templates/twig/search/result.twig
You can notice a block to display custom HTML:
{{ result.custom_html }}This custom_html data can be set in filter WPSOLR_Events::WPSOLR_FILTER_SOLR_RESULTS_APPEND_CUSTOM_HTML
You can find an example in the geolocation add-on wp-content/plugins/wpsolr-pro/wpsolr/pro/extensions/geolocation/class-wpsolr-option-geolocation.php:
add_filter( WPSOLR_Events::WPSOLR_FILTER_SOLR_RESULTS_APPEND_CUSTOM_HTML, [ $this, 'wpsolr_filter_solr_results_append_custom_html', ], 10, 4 ); /** * Generate geolocation distance html to append to results * * @param $default_html * @param $user_id * @param array $document * @param WPSOLR_Query $wpsolr_query * * @return string */ public function wpsolr_filter_solr_results_append_custom_html( $default_html, $user_id, $document, WPSOLR_Query $wpsolr_query ) { $result = ''; $template_text = WPSOLR_Service_Container::getOption()->get_option_geolocation_result_distance_label(); if ( ! empty( $template_text ) && $this->get_is_geolocation( $wpsolr_query ) ) { foreach ( WPSOLR_Service_Container::getOption()->get_option_index_custom_fields( true ) as $custom_field_name ) { if ( self::_SOLR_DYNAMIC_TYPE_LATITUDE_LONGITUDE === WpSolrSchema::get_custom_field_solr_type( $custom_field_name ) ) { // Add geolocation fields to the fields $distance_field_name = $this->get_distance_field_name( $custom_field_name ); if ( property_exists( $document, $distance_field_name ) || isset( $document->$distance_field_name ) ) { $distance_field_name_translated = WPSOLR_Translate::translate_field_custom_field( WPSOLR_Option::TRANSLATION_DOMAIN_SORT_LABEL, $custom_field_name, WPSOLR_Service_Container::getOption()->get_option_geolocation_user_aggreement_label() ); $distance = is_array( $document->$distance_field_name ) ? ( $document->$distance_field_name )[0] : $document->$distance_field_name; $result .= sprintf( self::TEMPLATE_RESULTS_GEO_DISTANCE, self::WPSOLR_RESULTS_GEO_DISTANCE_CLASS, sprintf( $template_text, $distance_field_name_translated, number_format( $distance, 2, '.', ' ' ) ) ); } } } } // No default geolocation default sort, or not a geolocation search: use the general default sort. return $result; }wpsolrKeymaster6 years, 2 months ago in reply to: Cross-site search and package pricing #21366Yes, there is a large discount per seat. Just use the order button on pricing, and increase the #seats (sites).
WPSOLR works only for WordPress sites.
wpsolrKeymaster6 years, 2 months ago in reply to: Hierarchical category filters hidden with wpsolr_hide by default #21362Hierarchies are part of the advanced facets layouts, that are activated in the add-on “Theme”:
/guide/configuration-step-by-step-schematic/activate-extensions/extension-theme/theme-collapse-taxonomy-hierarchies/