Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Jamie Sykes

    (@nineteen88)

    An alternative to this could be to sort the list by most recently edited. That would mean the item I want will be put to the top of the list if it was edited last, making it easier to find.

    Thread Starter Jamie Sykes

    (@nineteen88)

    @tropa Yes, you can use it there or in a plugin.

    Thread Starter Jamie Sykes

    (@nineteen88)

    Thanks for coming back to me Michael.

    I just found a filter in the plugin to change the batch size. I’ve reduced this from 100 to 25, and this has resolved the issue as smaller amounts of data are being pushed in one go so I’m not hitting the timeout issue.

    Here’s an example which might be useful for someone else in future:

    /**
    * Reduce the batch size to ensure that we don't get timeouts when doing a full reindex of site.
    */
    add_filter(
    'algolia_indexing_batch_size',
    function () {
    return 25;
    }
    );
    • This reply was modified 1 year, 3 months ago by Jamie Sykes.
    Thread Starter Jamie Sykes

    (@nineteen88)

    The indexing functionality doesn’t require having either “Use Algolia with the native WordPress search template” or “Use Algolia with Instantsearch.js” enabled in order to push your content.

    Thanks for that, yes it looks like we may need to think about the self-regulating of individual items, I was hoping this would still work regardless of the option but I can read through how the plugin is doing it and mimic it’s behaviour within my plugin.

    So you should be able to get a populated index. Not quite managing to picture how you’d be pulling that information, but I suspect it may be a custom implementation on that front?

    Yeah it’s totally going to be custom with markup and implementation as it is based on what has been done on another non WordPress site.

    Thanks for your help in this.

    Thread Starter Jamie Sykes

    (@nineteen88)

    Essentially we want to create an entirely custom search page using custom Gutenberg blocks.

    I’m hoping to use the plugin primarily as an easy way to hook into the indexing process for a specific post_type and output a completely custom page with searchable data.

    Basically using the plugin as more of a library to handle the communication and indexing within Algolia rather than specifically implementing search on my site.

Viewing 5 replies - 1 through 5 (of 5 total)