Viewing 10 replies - 1 through 10 (of 10 total)
  • I’d like to do something like that. I’m not sure how I want to cut back on queries, but I like your idea. I mean, how useful are results for a two-character search anyway?

    Thread Starter ridesign

    (@ridesign)

    for me the useful results start after 3-4 characters, before this I have some non-relevant results.

    edit daves-wordpress-live-search.js.php

    search for line:
    if(LiveSearch.searchBoxes.val() === “”) {

    and replace it with these 2 lines:

    var srch=LiveSearch.searchBoxes.val();
    if(LiveSearch.searchBoxes.val() === “” || srch.length <4 ) {

    i use it for search that begins after 4 characters entered.

    have you guys tried to search for “doesn’t” or “it’s”…words containing ‘, does the plugin work? for me it returns no results even though there are

    That’s basically it, yeah. I’m tied up re-doing a web site in my off-hours right now, so I haven’t gotten around to making the change. Thanks for finding that – it’ll make the actual change a snap.

    I think I’m going to make it configurable, with a dropdown for picking “right away”, “1 character”, “2 characters”, or “3 characters”.

    I hate adding another configuration option, but I could see someone wanting that kind of control.

    Thanks, guys.

    Since viewclips did half (25% maybe?) of the work, I went ahead & implemented this in the “trunk” (development) version. It’ll be part of the 3.0 release, unless I decide to do a 2.10. I’m not even sure www.remarpro.com’s system will let me do a 2.10, so probably 3.0.

    Alright, now you guys have to explain to Mrs. Csixty4 why I didn’t work on the gift basket web site tonight ??

    ??

    did you read my last part? when search words with ‘ like “it’s” “doesn’t” it doesn’t return any results, i tried modifing the code replacing ‘ with \’ for the query, but it seems not to work. you can check https://www.viewclips.net and search for “doesn’t” the live search has no results but after you press enter to search it returns the posts containing that work.

    how can we make the plugin act faster, like google/youtube and other sites that act almost instantly:)

    Viewclips, I’d be happy to add you as a maintainer if you want to take a crack at making this plugin better. It runs pretty snappily on my site (csixty4.com), but I could see it being slow elsewhere. Let me know if you’re interested.

    I could swear I fixed the apostrophe thing. Damn. I wonder if something was changed in WP 2.9 that broke it again.

    As for making it faster, one thing that springs to mind is caching usernames somewhere. The standard WordPress search only returns user IDs, which I have to do a separate query to turn into names. That information doesn’t change much, so we might as well dump the names to a file somewhere (unless that’s a security issue). It has to be faster than a DB query.

    yes i see that on your site the apostrophe thing works, do you have wp older that 2.9 installed?
    if i manage to make it load faster, i’m gonna tell you:)

    Are you kidding? I was running 2.9 when it was a release candidate ??

    so what’s the problem then?:)

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Dave’s WordPress Live Search] Only Search after 3 Chacters’ is closed to new replies.