schwindt14
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Search with Algolia] Multiple Search Pages Based on Post TypeHi Michael, here’s a clarification on what I’m after, also showing an example from the Algolia website that I really liked: https://somup.com/cTneraKtXu
Forum: Plugins
In reply to: [WP Search with Algolia] Multiple Search Pages Based on Post TypeThank you Michael, I appreciate this. I’ve read through the articles once, and while I understand some of what’s going on, it’s probably over my head in many respects. I’ll see if I can make any headway by experimentation and post my questions here. Or, if it turns out to be too much, I’ll reach back out of your sales folks. Thank you for your time.
Forum: Plugins
In reply to: [WP Search with Algolia] Include ACF field in autocomplete resultsAwesome, that’s all for now.
Forum: Plugins
In reply to: [WP Search with Algolia] Include ACF field in autocomplete resultsI appreciate all your help Michael. One more question then I’ll close this:
If we (my company) would like to setup a more comprehensive search/filter page (not just a search box) with check boxes and filtering posts by various custom attributes, and if I’m not feeling up to that task, does your company hire out hours and perform work like that? If so, what’s the best way to get in touch for a bid and/or rates?
Forum: Plugins
In reply to: [WP Search with Algolia] Include ACF field in autocomplete resultsOkay that fixed it. I had to alter the circled line above to say “product_description: 30” and now it is showing.
Question — Is that how it is properly done? Should I have had to edit that? Or should I just be able to edit in Algolia and have it reflect on my website?
Forum: Plugins
In reply to: [WP Search with Algolia] Include ACF field in autocomplete resultsPerhaps it is from this place in the autocomplete.php file (which isn’t a section I altered, I don’t think):
Forum: Plugins
In reply to: [WP Search with Algolia] Include ACF field in autocomplete resultsHere’s something. If I go to Algolia and go to the API log, it shows requests by header, then request body, then response body, and here is an example of a request body for when I typed “dish”:
{
"query": "dish",
"hitsPerPage": 5,
"attributesToSnippet": [
"content:10"
],
"highlightPreTag": "__ais-highlight__",
"highlightPostTag": "__/ais-highlight__"
}So does that indicate that my site is requesting only 10 words from the “content” field as snippeted attributes?
Just a thought…
Forum: Plugins
In reply to: [WP Search with Algolia] Include ACF field in autocomplete resultsIgnore that last sentence. I re-indexed from the plugin side (for post type “products”) and now it shows 257 records for that index in Algolia.
Forum: Plugins
In reply to: [WP Search with Algolia] Include ACF field in autocomplete resultsThank you for sticking with me on this. That screenshot was from an index called “wp_posts_products” and I do have others, I see now. I’ll attach the list:
This may or may not be related, but I’ll add that I have 257 products, so I find it odd that the wp_posts_products index only shows exactly 100 records.
- This reply was modified 1 month, 1 week ago by schwindt14.
Forum: Plugins
In reply to: [WP Search with Algolia] Include ACF field in autocomplete resultsHere’s what I see in Algolia:
It makes me think there’s something perhaps in my autocomplete.php edits? Which are here, just in case it helps, where I removed the “content” references and added in “product_description”, although the content item does still appear automatically in the Algolia Snippeting settings at the top.
<a class="suggestion-link" href="{{ data.permalink }}" title="{{ data.post_title }}"> <# if ( data.images.thumbnail ) { #> <img class="suggestion-post-thumbnail" src="{{ data.images.thumbnail.url }}" alt="{{ data.post_title }}"> <# } #> <div class="suggestion-post-attributes"> <span class="suggestion-post-title">
data._highlightResult.post_title.value
</span> <# if ( data._snippetResult['product_description'] ) { #> <span class="suggestion-post-content">data._snippetResult['product_description'].value
</span> <# } #> </div> <?php do_action( 'algolia_autocomplete_after_hit' ); ?> </a>I’m stumped.
Forum: Plugins
In reply to: [WP Search with Algolia] Include ACF field in autocomplete resultsYeah, I think that’s what has me confused. Out of the gate, I actually tried configuring snippets through the Algolia UI and thought that doing it there would cause it to be reflected on my website autocorrect results, but it didn’t (unless there is something I need to do to “push” stuff from Algolia to my site). When that didn’t work, I got into the techniques for configuring that from my site end.
After your last message, I did go in and “push” settings in your plugin, both for my “products” type, and also re-indexed that type on the same screen, and then I also jumped over to the “search page” screen that has the “Re-index All Content” and its own “Push Settings” screen. So I did a “push” and a re-index on both screens.
After all this, the product_descriptions are still showing indexed properly in the Algolia UI, and the snippeting appears correct with title and product_description in the Snipetting settings in Algolia, but it is not reflected in autocorrect results on my site.
From what you can see in my posts above, should it be working by now? Really love the idea of using Algolia, sooooo much faster, and would hate to abandon it just because I’m missing a code step due to my amateurishness.
- This reply was modified 1 month, 1 week ago by schwindt14.
Forum: Plugins
In reply to: [WP Search with Algolia] Include ACF field in autocomplete resultsHi Michael! Thanks for such a fast response.
I actually stumbled onto that documentation after posting here and I now have the following as a snippet:
https://codefile.io/f/VnvF0D3qZ5
Wherein I replaced “speaker” and the attribute “bio” in the example with my “products” type and the attribute “product_description”.
In fact in the Algolia platform after re-indexing I can now see “product_description” set in the “Snippeting” screen with a count of 50.
But still not showing in my autcomplete results. What am I still missing?
Forum: Plugins
In reply to: [W3 Total Cache] Errors with Cloudways / Object Cache ProReview has been posted. Thanks again!
Forum: Plugins
In reply to: [W3 Total Cache] Errors with Cloudways / Object Cache ProThis appears to have worked. Thank you so much. I suspect that disabling gzip compression in W3TC was also key, since from what I’m seeing, Object Cache Pro deals with compression in some areas. (https://objectcache.pro/)
I do have one related question which hopefully is an easy answer for you:
Given my situation (using Object Cache Pro for object cache and W3TC for various other things), is there any reason I would also want to disable the “Database Cache” feature in W3TC, for fear of additional “overlap”?
If there is no risk of overlap, then do you recommend that I select Redis or Memcached for Database Cache functionality (my server provides both options)?
I am only looking for recommendations to avoid future issues on these last points, and you have solved my original issue, so I will mark solved.
Forum: Plugins
In reply to: [W3 Total Cache] Errors with Cloudways / Object Cache ProThank you so much, Marko. I’ve been trying to isolate this issue for quite some time (with other support resources) and this is the most precise and helpful feedback I’ve received. I’m going to go and try these options and I’ll report back soon if I have additional questions or else I’ll mark it closed if successful. I appreciate your help!