Cant configure well AJAX PRO

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Cant configure well AJAX PRO

This topic contains 14 replies, has 2 voices, and was last updated by iridium iridium 5 years, 2 months ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #12263
    iridium
    iridium
    Participant

    Hi

    Having issues configurating the plugin.

    Its hard to understand all functions, and im unable to do well.

    Using WP ALL IMPORT, and importing BRANDS attributes on each product wich will be used for searches. They are hidden and works nice for searches, is a official BRAND who must be hidden to public. just uses for searches.

    On my Ajax search pro, i wanted use TITLE and BRANDS for searches only, no more. But im unable to configure like that.

    Use Index table or regular engine? i dont know wich is better for my case.

    Using too your snipet:

    add_filter( 'asp_query_args', 'asp_add_phrase_to_args', 2, 2 );
      
    function asp_add_phrase_to_args( $args, $id ) {
      $additional_phrase = 'perf'; // This will be added to the end of every search phrase
      
      $args['s'] .= ' '.$additional_phrase;
      return $args;
    }

    This word “perf” is having more relevance then the typed KEY, how to configure weight or relevance for search keys or results? I tryed to asign max weight to terms, but no good results.

    Logic: or/and + or/and, cant uderstand 2 logics. Works with index table and regular engine? or only for 1?

    Some keywords for BRANDS are not working, the keyword exist but didnt found on search.

    Example: CASCADE, XODO and many others

    Why are not showing?

    I will attach images for better explaining, sorry for my english.

    Thanks! ♥

    • This topic was modified 5 years, 3 months ago by iridium iridium.
    Attachments:
    You must be logged in to view attached files.
    #12310
    iridium
    iridium
    Participant

    Hallo need help!

    Cant understand well how to configure.

    If i type: CASCADE = result OK
    if i type: CASCADE PERFUME = Zero results.. or tons of results but not the product with keyword.

    Changing OR / AND or viceversa but no chance understanding at all.

    Can you help please?

    #12317
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    In this case, I would suggest using the Index Table engine, it will be better. Because in the regular engine it is not possible to choose only the BRANDS, but all the the other terms.

    I logged in, and looked at your configuration, you almost have it perfectly, but you forgot to choose the index table engine on the General Options -> Sources panel: https://i.imgur.com/Z4yKlyO.png
    Then the search instance will use the index table engine for searching 🙂

    The logics work for both engines, but there is a difference. For example the “AND” (all words have to partially match) logic:
    – Regular engine: all the words have to partially match at least one of the fields. In your case all words must partially match title or brands.
    – Index table: all the words have to match, but any of the fields. In your case one word can match the title, the other the BRANDS, it’s still a match. This is not possible with the regular engine.

    For example:
    Title: ‘Lorem ipsum’
    BRAND: ‘Dolor amet’
    Regular engine
    Test Phrase 1: ‘Lorem amet’ -> >NO match! (because one words is in title, second in brand)
    Test Phrase 2: ‘Dolor amet’ -> match!
    Index table
    Test Phrase 1: ‘Lorem amet’ -> >match! (in this case it matches)
    Test Phrase 2: ‘Dolor amet’ -> match!

    I hope this helps!

    Relevance is not possible to set for input keywords, but the index table engine will calculate keyword occurences as well. If you want to always prioritize some items, you can use the result priorities options. Unfortunately conditional priorities are not yet possible.

    Best,
    Ernest Marcinko

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


    #12322
    iridium
    iridium
    Participant

    Hallo Thanks for your answer.

    Normally im ussing index table engine, and as you saw, i included only Tittles and Brans.

    The problems appears when some words are not indexed. Are missing like CASCADE, and many others.

    Why thats its happeing!

    Check your self: Type CASCADE = No results

    If i use Regular Engine then i can find every BRAND keyword, but when using Index table, some BRAND keywords are missing.

    Another case is when i use 2 words, for example:

    EGOIST PERFUME

    EGOIST result is ignored, and priorize PERFUME results only .. why?

    Sometimes works and sometimes not. Depends on OR / AND logic condiguration, and this is so hard to understand with secondary logic, sorry.

    Thanks!

    • This reply was modified 5 years, 3 months ago by iridium iridium.
    #12328
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    I think I know why. On the product attributes panel, between the ‘|’ separator characters, there are missing spaces (it should be added automatically when saving): https://i.imgur.com/sHvzol9.png
    But, once I save the product, it’s automatically corrected, and the attributes are indexed as well: https://i.imgur.com/7hZeDZe.png
    I guess this might be because the products may have been imported in some way?

    The explanation is that the ‘|’ special character is not treated as a boundary, as it can be used in various fields.
    Possilbe solutions:
    Solution 1: To save all products so the attribute fields refresh properly

    Solution 2 (recommended, faster): ..or to make a tiny change in the search plugin code to recognize ‘|’ without spaces as word boundary as well. For this you will have to open the wp-content\plugins\ajax-search-pro\includes\classes\etc\indextable.class.php scroll to line 905 and change it from this:

    $ww = str_replace(array('.', ',', '-', '_', "=", "%"), ' ', $ww);

    to this:

    $ww = str_replace(array('.', ',', '-', '_', "=", "%", "|"), ' ', $ww);

    After that, make sure to create a new index, and the attributes should be correctly indexed as expected. I will make sure to include this change in the upcoming release as well.

    If you need help with this, feel free to add temporary FTP details, and I will make the change for you.

    Best,
    Ernest Marcinko

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


    #12334
    iridium
    iridium
    Participant

    Hi Ernest

    Applyed the changes, reindexed and worked PERFECT! Now i can find every BRAND key.

    Any way to display cross-sells products from result product?

    If i found 1 result product, then show another group like: Related products based on corss-sell.

    Im looking for this function, and thing will be not hard to code. Will be awesome to have a checkbox to activate it:

    Display related products from result?

    Your support is real. I love you so much ♥

    Thanks!

    #12367
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you for your kind words!

    Unfortunately that is not possible, and currently it would be very problematic to code. (mostly due to the calculations and keyword logics)

    Best,
    Ernest Marcinko

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


    #12374
    iridium
    iridium
    Participant

    Its ok! ♥

    I thinking about it, and did some tests, and the conclusion is, i need to EXACT matches.

    Like you explained here:

    OR with exact word matches

    Similar to the simple OR, but at least one keyword must match a whole word. Partial results are not accepted.
    Keyword Content Match?
    hello hello world, robot here YES
    hello robot hello world, robot here YES
    hello bot hello world, robot here YES
    help bot hello world, robot here NO
    hello science hello world, robot here YES

    Then must to use Regular engine, cause Index table doesnt support it.

    About the my general search, keyword will not combine on TITLE and BRANDS-
    The keyword will find only on one destiny: TITLE or BRAND.

    Exact match on TITLE or Exact match on BRANDS

    For example:
    Title: ‘Lorem ipsum’
    BRAND: ‘Dolor amet ‘
    Regular engine
    Test Phrase 1: ‘Lorem ipsum’ -> >match!
    Test Phrase 2: ‘Dolor amet’ -> match!
    Test Phrase 3: ‘Lorem amet’ -> > NO match!
    Test Phrase 4: ‘amet’ -> match!
    Test Phrase 5: ‘Dolor ipsum’ -> match!
    Test Phrase 6: ‘Dolo ame’ -> NO match!

    Wanted to show only exact matches

    Another problem is how to use only and exclusively TITTLE and BRANDS products for search.
    I dont want to display variation or duplicates.

    Cant configure correctly or something is bugging.

    I want to use OR with exact word matches but only works on title of product, not on custom fields (pa_brands)

    I wanted FULL word match, but cant do it.

    Thanks!

    • This reply was modified 5 years, 3 months ago by iridium iridium.
    #12384
    iridium
    iridium
    Participant

    Hi

    I think im having the same issue with “|” on Regular engine.

    How to fix like Indextable?

    $ww = str_replace(array('.', ',', '-', '_', "=", "%", "|"), ' ', $ww);

    Cant find the file to edit.

    If i search with: SEXY|DARK

    Then works.

    I reimported all products, and now, all attributes are with spaces. But Regular engine searchs so different:

    I have this value with this order on my CSV: SENSUELLE|AZZARO POR ELLE|GOOD GIRL|ULTRA SEXY|DARK VANILLA

    Then this is exactly what is finding Regular engine with OR (exct matches).

    this is a MATCH: SENSUELLE|AZZARO 🙁

    Must replace “|” or something right?

    Thanks!

    #12385
    iridium
    iridium
    Participant

    I reimported my CSV edited like:

    MAN S GAI MATTIOCO | 212 | QUASAR FUEGO | BOTICARIO | LA FIEBRE DEL DEPORTE
    ADIDAS | CUEVE CHILL LIZ CLAIBORNE

    Adding a space into each | and now works, but have some issues.

    Some keywords are not founded.

    Try: IRIS, INVICTUS, VIP 212, and many others just arent displaying, WHY?

    Existing 3 products with IRIS, but only 2 are displaying 156 and 19, but missing 173.

    Cant understand why happend this.

    Thanks!

    #12386
    iridium
    iridium
    Participant

    Hey, I finally fixed the issue I was having while importing from csv.

    Your plugin ignores the first and the last values for brands of each product in the row, when it’s like this:

    NIGHT RUNNER | MAMBO MIX | BLACK KS | JOOP | FERRARI PASSION

    Then i fixed this by adding | in front of the first and the last keywords, like this:

    | NIGHT RUNNER | MAMBO MIX | BLACK KS | JOOP | FERRARI PASSION |

    An now, the plugin can find them.

    All of this is when using: regular engine, with AND exact word matching.

    Maybe you should fix this for a future version.

    Thanks

    #12389
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you for all the information.

    Indeed, the regular engine is not good at recognizing “start of the string” type of matching when exact word matching is enabled. For this purpose the index table engine is much better, and even faster.

    I will see what I can do about it, but there is a good chance I won’t be able to add string start & string end matching for the regular engine – not because it is complicated, but it might cause performance related issues. I will have to test it to see.

    Best,
    Ernest Marcinko

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


    #12530
    iridium
    iridium
    Participant

    Hi again Ernest

    Have problems configuring the plugin.

    I search for:

    20  cuero aromática especiada vetiver 

    and my CSV row have this:

    | Hamm | Perfume para Hombre | 20 | cuero | aromática | especiada | vetiver | picante | dulce | fresco | joven |

    Having no results, why?

    Using AND exact word matches

    Can you help please?

    #12531
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    It’s because you have the Show exact matches only? option enabled. In that case, the regular engine is forced, and may not pick up these keywords: https://i.imgur.com/iEINZXm.png

    If you turn that off, it should start working immediately.

    Best,
    Ernest Marcinko

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


    #12532
    iridium
    iridium
    Participant

    i dont know the use of this function, and now i disabled and seems is working!

    Ill test more

    Thanks Ernest! ♥_♥

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

You must be logged in to reply to this topic.