Forum Replies Created

  • wpsolr
    Keymaster

    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.
    wpsolr
    Keymaster
    6 years, 2 months ago in reply to: cannot build index #21413

    Fine.

    Please create another topic for the new issue.

    wpsolr
    Keymaster
    6 years, 2 months ago in reply to: cannot build index #21411

    Nothing in debug.log?

    wpsolr
    Keymaster
    6 years, 2 months ago in reply to: cannot build index #21409

    Can you switch to an earlier version?

    wpsolr
    Keymaster
    6 years, 2 months ago in reply to: cannot build index #21407

    What is your PHP version?

    wpsolr
    Keymaster

    WPSOLR works also with SolrCloud indeed. You can install your SolrCloud cluster, it will work as-is with WPSOLR.

    wpsolr
    Keymaster

    Does the custom field on your post type contain the PDF content, or a link to the PDF content?

    wpsolr
    Keymaster

    WPSOLR already indexes custom post types and attachment files.

    wpsolr
    Keymaster
    6 years, 2 months ago in reply to: Simple Elastic cloud setup #21377

    Which WordPress hosting provider is it?

    wpsolr
    Keymaster
    6 years, 2 months ago in reply to: Simple Elastic cloud setup #21374

    Can 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.

    wpsolr
    Keymaster
    6 years, 2 months ago in reply to: Cross-site search and package pricing #21372

    No, it is not possible.

    wpsolr
    Keymaster

    No, it cannot.

    wpsolr
    Keymaster

    So, 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;
    	}
    wpsolr
    Keymaster
    6 years, 2 months ago in reply to: Cross-site search and package pricing #21366

    Yes, 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.

    wpsolr
    Keymaster

    Hierarchies 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/

Viewing 15 posts - 2,086 through 2,100 (of 3,679 total)