Forum Replies Created
-
wpsolrKeymaster5 years, 4 months ago in reply to: Exclude product detail from index #26855
Yes, you can select searched fields and add boosts for Elasticsearch.
wpsolrKeymaster5 years, 4 months ago in reply to: Exclude product detail from index #26853By default, post type description is indexed and search.
But you can select only the fields you need to search in menu 2.3 (Search fields boosts Options), and also give them a boost number.
For instance, the title with a boost of “3” would be searched with more priority than a colour attribute with a boost of “1”.wpsolrKeymaster5 years, 4 months ago in reply to: Cannot download the WPSOLR configuration files for Solr #26850It is a very old tutorial.
Now, you do not need to install files by yourself, the plugin does it for you.Check out: /guide/configuration-step-by-step-schematic/configure-your-indexes/connect-to-an-apache-solr-index/
wpsolrKeymaster5 years, 4 months ago in reply to: Using custom post types in custom page template #26846Indeed, wpsolr_query->posts is an array of WP_Post.
The theme’s search template is in charge of extracting the permalink with the_permalink() in the posts loop, which calls
apply_filters( 'the_permalink', get_permalink( $post ), $post ).As an alternative, you could also catch the filter ‘the_permalink’ to return whatever you need:
global $wp_query; if ( $wp_query instanceof WPSOLR_Query ) { // return static permalink when query is from WPSOLR return 'my_permalink'; }Or set a global variable in event WPSOLR_Events::WPSOLR_ACTION_POSTS_RESULTS’s code mentioned previously, and use the variable instead in the filter ‘the_permalink’.
- This reply was modified 5 years, 4 months ago by wpsolr.
wpsolrKeymaster5 years, 4 months ago in reply to: Using custom post types in custom page template #26836Check out /guide/actions-and-filters/search-results-modify-posts/
Modify and copy the following code into your theme’s functions.php, or in a new small plugin.
use wpsolr\core\classes\WPSOLR_Events; use wpsolr\core\classes\WpSolrSchema; add_action( 'after_setup_theme', function () { add_action( WPSOLR_Events::WPSOLR_ACTION_POSTS_RESULTS, 'wpsolr_action_posts_results', 10, 2 ); } ); /** * @param WPSOLR_Query $wpsolr_query * @param WPSOLR_AbstractResultsClient $results */ public function wpsolr_action_posts_results( WPSOLR_Query $wpsolr_query, WPSOLR_AbstractResultsClient $results) { // Modify urls of each post in $this->posts here // Just before it is returned to your theme for display }- This reply was modified 5 years, 4 months ago by wpsolr.
wpsolrKeymaster5 years, 4 months ago in reply to: Using custom post types in custom page template #26834I’m not sure how it is related to WPSOLR?
wpsolrKeymaster5 years, 4 months ago in reply to: Changing search to AND instead of OR #26678What search engine do you use?
wpsolrKeymaster5 years, 4 months ago in reply to: WP Solr conflict with Yoast XML Sitemaps #26676Did you activate the WPSOLR’s Yoast add-on?
wpsolrKeymaster5 years, 5 months ago in reply to: Problem indexing media files with Algolia #26475Indeed, unlike Elasticsearch or Solr, Algolia does not provide a way to extract text from medias with Apache Tika: https://www.algolia.com/doc/faq/searching/can-i-index-pdfs-word-and-other-types-of-documents/
wpsolrKeymaster5 years, 5 months ago in reply to: Custom field filters #26329If filters disappear while results are still present, this means an error occurred and WPSOLR reverted the search back to the standard WP search.
You should see both an error in the javascript console, and an error in debug.log.
wpsolrKeymaster5 years, 5 months ago in reply to: Custom field filters #26324Can you see errors in your WP debug.log ?
wpsolrKeymaster5 years, 5 months ago in reply to: Noindex/No Follow all WPSolr URL’s #26320Unfortunately, this feature is too deeply integrated in Yoast add-on to be extracted.
wpsolrKeymaster5 years, 5 months ago in reply to: Custom field filters #26319Please replace your WPSOLR with this fix: https://trello.com/c/mthuQZN6/158-fix-algolia-date-filter
You’ll need to re-index all your data.wpsolrKeymaster5 years, 5 months ago in reply to: Custom field filters #26316Please replace your WPSOLR with this fix: https://trello.com/c/mthuQZN6/158-fix-algolia-date-filter
It should solve your date filtering with Algolia.
wpsolrKeymaster5 years, 5 months ago in reply to: Custom field filters #26312Investigating…
- This reply was modified 5 years, 5 months ago by wpsolr.