• Resolved Amigoow

    (@amigoow)


    Hi,

    So I have search field with live/ajax. How can I make this plugin record the live/ajax results?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Just came ready to ask the same thing!

    Using the Advanced Woo Search plugin (https://www.ads-software.com/plugins/advanced-woo-search/) I found searches are not being recorded.

    The changelog for Search Meter version 2.12 says searches made via ajax requests can be tracked, yet nothing is showing.

    Any ideas @bennettmcelwee or someone?

    Plugin Author bennettmcelwee

    (@bennettmcelwee)

    Search Meter can record standard WordPress search requests made (normally or via ajax). But some plugins such as Woo Search don’t use the standard WordPress search mechanism, so Search Meter doesn’t see the search requests.

    I need to solve two problems to get this to work:
    1. Detect search queries made by non-standard mechanisms
    2. Handle multiple queries for a single search (ajax search plugins usually make one request for every key typed)

    This is on my to-do list but I don’t expect to be working on it very soon.

    I see. Thanks for your quick reply, Bennett.

    The second problem is the one that worries me the most, as SM could easily register hundreds of searches just a few characters long that wouldn’t be as useful to analyse as complete words.

    Unless if, maybe, there was an option to keep SM from recording searches of less than N characters…

    Anyway, thanks again and best of luck with your to-do list ??

    Plugin Author bennettmcelwee

    (@bennettmcelwee)

    Yes indeed. My current plan is to detect when a search request is part of a dynamic search and handle that case specially. For example, a search for “m” followed a second later by a search for “mu” from the same origin is a dynamic search, so Search Meter can simply overwrite the “m” search with the “mu”. This will work as long as performance doesn’t suffer with all the DB updates.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘AJAX Live Search’ is closed to new replies.