• Resolved jinsley8

    (@jinsley8)


    Is there anywhere in your plugin code that I can add debug logging to log all search requests?

    Algolia says I’ve reached my 10,000 request limit on my dev account but I’ve barely made any requests. I’ve already added debounce on the search input as well.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi, not really that I can see in our current code outside of the catch portion of a try/catch block, and this is only for “Use Algolia with the native WordPress search template” search page settings. If you’re using autocomplete/instantsearch, that’s all going to be frontend/javascript libraries.

    Best bet is probably going to be analytics and whatnot from your algolia.com dashboard, for analysis.

    Thread Starter jinsley8

    (@jinsley8)

    Okay thanks.

    I have 8 post types, each set to 3-5 results and the index included the content so I think this is what was draining the search requests.

    I excluded content from indexes and limited results to 2 each. I think it will help. I may have to increase the debounce value slightly as well.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    The smaller amount of sources needed for the Autocomplete, the better. If it meets needs, using the “All Posts” option will put all searchable post types into one index, and thus also reduce the amount of indexes to query against. We have filters available to limit which post types get included, without having to adjust their “exclude from search” boolean value.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’m curious if some of the info at https://www.youtube.com/watch?v=hYldeR2mPTs could help

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

The topic ‘Log all search requests in wp debug’ is closed to new replies.