Forum Replies Created
- pseudo visitorParticipant5 years, 7 months ago in reply to: Custom facets for WooCommerce with 60,000 products #6911
60,000 orders, 10,000 products, lots of traffic, 5,000 product tags.
pseudo visitorParticipant5 years, 7 months ago in reply to: Custom facets for WooCommerce with 60,000 products #6910Why do you consider using WPSOLR: lots of data, query accuracy … ?
pseudo visitorParticipant5 years, 7 months ago in reply to: No results #6905I have it partially working. How do I add the filters to my default search page?
pseudo visitorParticipant5 years, 7 months ago in reply to: No results #6904Two remarks.
1) You activated the network (cross-domain) features
Please fix that with the following steps:
a) Empty your index first
b) then, on screen 2.1, on option “This search is part of a network search”, select “No, this is a standalone search ”
c) Re-index2) You chose post types “Downloads” on screen 2.2
Deactivate it, and re-index if not necessary, or if your theme cannot display them in search results.
pseudo visitorParticipant5 years, 7 months ago in reply to: Hooks to change Elasticsearch settings and mapping #6897I can change the ‘author’ default type ‘keyword’ to ‘text’ in the ‘Search field boosts’?
Have you considered adding a “quote” char_filter in the settings?
I found problematic searching for words with apostrophes using the plugin free version.
“char_filter”: {
“quotes”: {
“type”: “mapping”,
“mappings”: [
“\\u0091=>\\u0027”,
“\\u0092=>\\u0027”,
“\\u2018=>\\u0027”,
“\\u2019=>\\u0027”,
“\\u201B=>\\u0027”
]
}
}pseudo visitorParticipant5 years, 7 months ago in reply to: 4 sites with a cross-domain site-wide search #6890Do the indexes update automatically as the sites grow, or is that a manual process?
pseudo visitorParticipant5 years, 7 months ago in reply to: 4 sites with a cross-domain site-wide search #6888I’m issues to find any pricing for Solr or Elasticsearch servers.
Are these free resources?
Many thanks for your help. WPSOLR looks likely to be the ideal solution.
pseudo visitorParticipant5 years, 7 months ago in reply to: class-wpsolr-option.php: Invalid argument supplied for foreach() #6855It solved the problem. Thanks!!
pseudo visitorParticipant5 years, 7 months ago in reply to: Optimizations to index a million WooCommerce products #6852Yes, the database is not optimized and this is why I am getting a slow speed. The batch size is also 1000.
pseudo visitorParticipant5 years, 7 months ago in reply to: Optimizations to index a million WooCommerce products #6850It worked.
I just increased the Memory limit to 60 GB on 64 GB RAM server and as of now, I am getting a speed of 1,000 per minute. I hope it will be completed by tomorrow.
Meanwhile, please let me know how to test the imports. I can see a total of 20,000 products imported.
pseudo visitorParticipant5 years, 7 months ago in reply to: Optimizations to index a million WooCommerce products #6848We are using Runcloud to manage the website server.
Both the website and Elasticsearch are hosted on Digitalocean.
The synchronization speed is very slow and I believe entering the right PHP and FMP settings will help.
We will try with this first.
pseudo visitorParticipant5 years, 7 months ago in reply to: Optimizations to index a million WooCommerce products #6847It is not related to WPSOLR (Your Elasticsearch server being hosted elsewhere).
You should ask to WordPress performance specialists, like https://www.wpintense.com/.
pseudo visitorParticipant5 years, 7 months ago in reply to: Install Elasticsearch with the Wodby stack #6844I added a video tutorial for creating a Wodby index:
pseudo visitorParticipant5 years, 7 months ago in reply to: Index a custom field with the values of an ACF repeated field #6840Here is a piece of code using WPSOLR’s filter https://www.wpsolr.com/guide/actions-and-filters/index-modify-a-document/.
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_filter( WPSOLR_Events::WPSOLR_FILTER_SOLARIUM_DOCUMENT_FOR_UPDATE, 'wpsolr_filter_solarium_document_for_update', 10, 5 ); } ); /** * * @param array $document_for_update * @param $solr_indexing_options * @param $post * @param $attachment_body * @param WPSOLR_AbstractIndexClient $search_engine_client * * @return array Document updated with fields */ function wpsolr_filter_solarium_document_for_update( array $document_for_update, $solr_indexing_options, $post, $attachment_body, WPSOLR_AbstractIndexClient $search_engine_client ) { $solr_dynamic_type = WpSolrSchema::_SOLR_DYNAMIC_TYPE_STRING; // Depends on the type selected on your field on screen 2.2 $document_for_update[ 'my_field_name' . $solr_dynamic_type] = 'whatever'; return $document_for_update; }
pseudo visitorParticipant5 years, 7 months ago in reply to: Search is not working at all #6836Working now!