Blank speces in search and copy and paste search terms

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Blank speces in search and copy and paste search terms

This topic contains 16 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #14152
    leelnj
    leelnj
    Participant

    Hello,

    hello. my client has bought your plugin and we have configured it but we have one issue. we have product numbers such as 100-6-58-800. if a client types in 100658800 it will show no results. is there any way of showing the result or keyword suggestion if the client does not enter special characters. When searching by Title or Order Reference the search function should return results if a user replaces characters such as hyphens in their search with spaces. eg if someone searches for
    the Title = 105 mm Black & Blue Ribbon, Order Ref = Globalmark ribbon – Blk-Blue ribbon /400mm long panels by typing in Black Blue Ribbon or Blk Blue ribbon the above result should display
    2.) My ajax dropdown search is really slow and it also does not work if I copy and paste text in there
    3.) We wanted to extend our serach capability and put some attruibutes into product tags so search can read them eg article number and order reference but search is not reading order ref try typing in Globalmark ribbon – Blk-Blue ribbon /400mm long panels which should be 105 mm Black & Blue Ribbon

    #14156
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    1. The index table engine might be a solution for you. The recent plugin version does support detecting and indexing words with special characters. It may not work, but it’s definitely worth a try.

    2. The search performance in most cases is equivalent with the server performance. There are however tricks to make it more efficient: https://wpdreams.gitbooks.io/ajax-search-pro-documentation/content/performance_tuning.html

    3. Make sure that the search in terms option is enabled. If you already have performance issue, I recommend solution #2 from this documentation (with index table engine): https://wpdreams.gitbooks.io/ajax-search-pro-documentation/content/general_settings/search_in_terms_categories,_tags.html

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14175
    leelnj
    leelnj
    Participant
    You cannot access this content.
    #14181
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Are you sure? I just tried the search, and I’m seeing prices on variable products as well: https://i.imgur.com/wqIpKY3.jpg
    I believe that product is variable, or at least I’m guessing from the product page.
    Is it happening on a specific search phrase, or with specific products?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14187
    leelnj
    leelnj
    Participant
    You cannot access this content.
    #14190
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Indeed, that does look like a bug to me. I’ve looked up the source, and it seems like that the taxonomy term suggestions does not respect the maximum suggestions count. As a temporary solution, I have disabled term suggestions for now: https://i.imgur.com/tIPe4Fl.png

    I will make sure to fix this is in the upcoming release.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14560
    leelnj
    leelnj
    Participant

    hello. my client has bought your plugin and we have configured it but we have one issue. we have order references such as B30-25-595. if a client types in B30-25-595 it will display results but if they type in B3025595 it will show no results. It will work if i type in B30 25 595 which is great and needed as well but not when there is no space eg B3025595 . I have tried to use the following code from your knowledgebase to remove hypens but it doesnt work
    // —- !!! ONLY COPY PASTE CODE BELOW THIS LINE to the functions.php in your theme directory !!! —-
    add_filter(‘asp_search_phrase_before_cleaning’, ‘asp_replace_characters’, 10, 1);
    add_filter(‘asp_query_args’, ‘asp_replace_characters’, 10, 1);
    function asp_replace_characters( $s ) {
    $characters = “‘,._-/?!”; // Type characters one after another
    $replace_with = ”; // Replace them with this (space by default)
    if ( is_array($s) ) {
    if ( isset($s[‘s’]) && !$s[‘_ajax_search’] )
    $s[‘s’] = str_replace(str_split($characters), $replace_with, $s[‘s’]);
    } else {
    $s = str_replace(str_split($characters), $replace_with, $s);
    }
    return $s;
    }

    This is critical for my client so appreciate your response asap
    2.) I really need my keyword suggestion to be using taxonomy term suggestions. has this been fixed?
    ” I’ve looked up the source, and it seems like that the taxonomy term suggestions does not respect the maximum suggestions count. As a temporary solution, I have disabled term suggestions for now:”

    #14561
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    1. Are you using the index table engine, as I suggested before? That code will not help in this case, because you don’t want to remove hyphens from the search phrase, but compare a search phrase without hyphens to content with hyphens, which is much more difficult to solve.

    2. Yes, this should have been solved in the recent release (version 4.11.4)

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14565
    leelnj
    leelnj
    Participant

    yes i am using index table engine. I really need some sort of solution please

    #14568
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    The problem is that you are not using the latest version of the plugin. I see 4.10.5 installed, which is very outdated, as the latest is 4.11.4
    Please install the latest release, re-create the index table, and it should probably do the trick, as the hyphen and special character replacement words were introduced in one of the latest releases.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14570
    leelnj
    leelnj
    Participant

    I have just installed the latest version
    If i enter B30-25-595-BLNKWT i get results
    If i enter B30 25 595 BLNKWT I get results
    If i enter B3025595BLNKWT i get no results

    There must be a way of getting this to work

    #14572
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Have you re-created the index table as well? https://i.imgur.com/StoQSrP.png
    This step is very important.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #14573
    leelnj
    leelnj
    Participant

    yes. its working now. i have had to run a query to put all of my order refs in my product tags stripped out of any dashes. Not ideal but works

    #14574
    leelnj
    leelnj
    Participant

    I Have 1 more issue. if i copy and paste anyhing into search box search does not always launch. have you any idea how to get it to launch all the time

    #14575
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Does it not work on specific phrases or a specific browser?
    I have tried many phrases with CTRL + C and CTRL + V, but it all worked for me. Or do you want to trigger it when right-click + paste is clicked?

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.