Forum Replies Created
-
wpsolrKeymaster6 years, 3 months ago in reply to: Indexing similar category paths moves products to other categories #20899
I configured your use case on my environment, with no issue:


wpsolrKeymaster6 years, 3 months ago in reply to: WPSolr Not Replacing WooCommerce Archives #20898Your category page looks fine to me now.
wpsolrKeymaster6 years, 3 months ago in reply to: Indexing similar category paths moves products to other categories #20894What are the url parameters when you select the child?
wpsolrKeymaster6 years, 3 months ago in reply to: Pagination Not Working #20892Did you customize WPSOLR’s code?
wpsolrKeymaster6 years, 3 months ago in reply to: WPSolr Not Replacing WooCommerce Archives #20891Can you deactivate facetwp and see what happens?
wpsolrKeymaster6 years, 3 months ago in reply to: Search results adding to the title #20889Use the 2 filters in your theme functions.php to return ” instead of ‘<b>’ and ‘</b>’
- This reply was modified 6 years, 3 months ago by wpsolr.
wpsolrKeymaster6 years, 3 months ago in reply to: Indexing similar category paths moves products to other categories #20888When you select a child category, are the parents selected automatically too?
wpsolrKeymaster6 years, 3 months ago in reply to: Search results adding to the title #20882return ” in the filters.
wpsolrKeymaster6 years, 3 months ago in reply to: Indexing similar category paths moves products to other categories #20877
I logged the ES query on my own env, and it’s very different:
{“bool”:{“must”:{“term”:{“non_flat_hierarchy_product_cat_str”:”cat 1″}}}},
{“bool”:{“must”:{“term”:{“non_flat_hierarchy_product_cat_str”:”cat 1 1″}}}},
{“bool”:{“must”:{“term”:{“non_flat_hierarchy_product_cat_str”:”cat 1 1 1″}}}}The 3 categories in the parent-child hierarchy are filtered, which prevent duplicates on children with the same name.
wpsolrKeymaster6 years, 3 months ago in reply to: Indexing similar category paths moves products to other categories #20876How do you display your categories? (checkbox, list box ?)
wpsolrKeymaster6 years, 3 months ago in reply to: Search results adding to the title #20875Thanks, but the config file is overridden by the code.
There is a filter to do that: WPSOLR_Events::WPSOLR_FILTER_HIGHLIGHTING_PREFIX
An exemple in /wp-content/plugins/wpsolr-pro/wpsolr/core/classes/extensions/premium/class-wpsolr-option-premium.php:
// No highlighting tags add_filter( WPSOLR_Events::WPSOLR_FILTER_HIGHLIGHTING_PREFIX, [ $this, 'wpsolr_filter_highlighting_prefix' ], 10, 1 ); add_filter( WPSOLR_Events::WPSOLR_FILTER_HIGHLIGHTING_POSFIX, [ $this, 'wpsolr_filter_highlighting_posfix' ], 10, 1 ); /** * * Update highlightings prefix * * @return string */ public function wpsolr_filter_highlighting_prefix( $prefix_tag ) { return $this->_wpsolr_filter_highlighting_tag( $prefix_tag ); } /** * * Update highlightings postfix * * @return string */ public function wpsolr_filter_highlighting_posfix( $postfix_tag ) { return $this->_wpsolr_filter_highlighting_tag( $postfix_tag ); } /** * * Update highlightings tag * * @return string */ protected function _wpsolr_filter_highlighting_tag( $tag ) { if ( $this->is_replace_admin_post_type_by_wpsolr_query || $this->is_replace_admin_admin_taxonomy_by_wpsolr_query ) { return ''; } return $tag; }wpsolrKeymaster6 years, 3 months ago in reply to: Indexing similar category paths moves products to other categories #20872Did you check the “Is a hierarchy” on your category in screen 2.4 (Filters)?
wpsolrKeymaster6 years, 3 months ago in reply to: Search results adding to the title #20871Where do you see that?
wpsolrKeymaster6 years, 3 months ago in reply to: Indexing similar category paths moves products to other categories #20868Try to activate the Elasticsearch debug trace in screen 2.1 on both environments, to understand the difference.
wpsolrKeymaster6 years, 3 months ago in reply to: Search results adding to the title #20867Is it solved?