custom search filter

This topic contains 12 replies, has 2 voices, and was last updated by

 
Participant
5 years, 4 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #10040

    Participant

    Hi, I am replacing the current search on my site. if you check I have the search result filtered as articles and companies

    http://screencast.com/t/juPUGX3ZJo

    *companies is pages.

    How I can implement same filter with Ajax search pro. ?

    #10042

    Hi,

    I’m assuming the articles and companies are different custom post types?
    In this case you are looking for results grouping by post type: https://i.imgur.com/iuB4zfw.png

    If they are the same post type, but in a different category, then grouping by category is the way to go: https://i.imgur.com/YO8mHsE.png

    Best,
    Ernest Marcinko

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


    #10043

    Participant
    You cannot access this content.
    #10044

    Participant

    and yes,, articles is posts. and companies are pages.

    #10045

    Hi,

    Thank you for the details, I have found the problem. The mixed results ordering was activated, which appears to have caused a yet unknown bug. I’ve turned that option off, as it’s not needed for grouping, and it fixed the problem 🙂

    Best,
    Ernest Marcinko

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


    #10047

    Participant

    Thank you. I really appreciate you help.

    just last thing.. is there is possible to order the search result by. pages (company’s ) first then posts (articles).

    Or view 5 result limit from each.

    #10049

    Participant

    also, is there is possible to change the tittle here to companies and articles : http://screencast.com/t/9vaQ3udWL

    #10050

    Hi,

    You can change the order and the text as well on the same options panel: https://i.imgur.com/mcCNMmW.png

    Best,
    Ernest Marcinko

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


    #10053

    Participant

    thank you very much. just try to search here : http://screencast.com/t/omN02PsS

    is there possible to display companies first. then article.

    #10054

    Hi,

    The companies are displaying first, if there are company results for the actual search query within the limit.

    If you want to prioritize some results over others, you can use the priorities function as well: https://goo.gl/4Z7xbj

    Best,
    Ernest Marcinko

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


    #10056

    Participant

    Thank you..

    just please check to search here : http://marketexclusive.com/search-test/

    for FD, then FDI

    http://screencast.com/t/K3WHwWv779

    with FD search the result all from articles , and with FDI the result from companies and articles which what I need.

    #10059

    I will try to explain why it’s working like that:
    The limit for post types is set to 10. When searching for “FD” it returns over 10 more relevant results for the articles than the companies so those are displayed. The limit applies to all post types in overall, not separately, as they are stored in the same database table. The more relevant items are displayed first, regardless of the post type. (the results count is not distributed evenly by post type, it’s not possible by a single query)

    I’ve noted this as a possible feature in the next release, as it would be very useful. Of course I will have to investigate first how a solution would affect the overall performance.

    Best,
    Ernest Marcinko

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


    #10060

    Participant

    thanks

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

The topic ‘custom search filter’ is closed to new replies.