Listing is Limited on Custom search box

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Listing is Limited on Custom search box

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

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #18767
    gteigland
    gteigland
    Participant

    For some reason all the listings “Camera Name” are not listing on the CUSTOM dropdown search.

    For example “Chambre” works on the main box search but does NOT work on the Camera Name Only Search. It use to be fine. It seems that anything after AL no longer shows in the Camera Name Search.

    https://www.awesomescreenshot.com/image/3504183/74f5c7031c091c67204fc80c02798216

    #18768
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    It happened, because the drop-down values were limited to 250 values only. I have increased this limit via FTP to 25 000. Now it should display all of them.

    Best,
    Ernest Marcinko

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


    #18820
    gteigland
    gteigland
    Participant

    We seem to be having the same issue for our cutom Manufacturer Field. Where can I change this so I don’t have to bug you anymore with this.

    Thanks!

    #18824
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    The change affects all drop-down fields, not just that single one. I checked the query, and the database returns 114 different manufacturers only within that field, even when the limit is removed. If the manufacturer information will be used on posts, then it should be available in the post_meta table, and they should start appearing in the list as well.

    The file that was changed is: wp-content\plugins\ajax-search-pro\includes\functions\functions.php
    in case you want to archive it.

    Best,
    Ernest Marcinko

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


    #18894
    gteigland
    gteigland
    Participant

    So we are still having issues with this as it deals with result numbers. Let me give you a specific example that I think will help and make it easy to understand.

    1. So in the MAIN search bar I’ve put the custom post types “Cameras” and Manufactures” and including ALL custom fields. See screenshot here:
    https://www.awesomescreenshot.com/image/3534869/e214f40debbb8a0a221bbb7d858c744d

    2. When I type in AGFA in the Manufacturer box I get over 17 pages of results
    https://www.awesomescreenshot.com/image/3534872/86cc4b938e5cd8e0b97ba66c14d85b8d

    3. However when I do the same in the main search box I only get 10 pages of results
    https://www.awesomescreenshot.com/image/3534880/614f1ddd7161a425d77ced3e0768c3ca

    4. As you can see I’ve set my limit to 10000
    https://www.awesomescreenshot.com/image/3534877/3c898e65f0273e0ec92c73b491210355

    We are having this issue on other similar search items. We just aren’t getting all the results that we should.

    ONE MORE EXAMPLE: When you type in AGFA in the manufacturer box we only get 170 results but there are over 300 in our database. This camera is AGFA but does not show up in our search results when we type AGFA in the manufacturer field. We get even less results on the main search box on top.
    http://wp.mckcamera.com/cameras/record-iii/

    Please advise.

    • This reply was modified 5 years, 8 months ago by gteigland gteigland.
    • This reply was modified 5 years, 8 months ago by gteigland gteigland.
    #18900
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    I have run a quick debugging on the executed query for the search term ‘agfa’, and it returns 194 results, that should be 19 pages, not 10, however it prints only 10.
    Then I checked if the posts per page values are set correctly, but everything seems to be okay.

    If I manually navigate to page 19, the last of the results work, so that means, that the navigation is not working correctly. See this: https://i.imgur.com/J0zWhM7.png

    I checked, but the correct results count & page count is passed to the search query, so I am guessing that the navigation might use a different method to calculate the page count. The maximum page count should be queried from the $wp_query->max_num_pages variable.
    I suggest investigating the navigation script, to make sure it uses this variable correctly.

    Best,
    Ernest Marcinko

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


    #18901
    gteigland
    gteigland
    Participant

    ok gotcha that explain much of the confusion. Thanks!

    Gene

    #18924
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    One more thing I completely forgot.
    The posts per page option on the plugin back-end under General Options -> Behavior, and the posts per page option in the Settings -> Reading page should be set to the same value – that may cause the mismatch in the pagination.

    Make sure to check those, they may have been changed at some point.

    Best,
    Ernest Marcinko

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


    #18925
    gteigland
    gteigland
    Participant

    That did it!! Thanks!!

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

You must be logged in to reply to this topic.