This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

custom search filter

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #10040
    khalidkhalid
    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
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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: http://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: http://i.imgur.com/YO8mHsE.png

    #10043
    khalidkhalid
    Participant

    You cannot access this content.

    #10044
    khalidkhalid
    Participant

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

    #10045
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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 🙂

    #10047
    khalidkhalid
    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
    khalidkhalid
    Participant

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

    #10050
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

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

    #10053
    khalidkhalid
    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
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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

    #10056
    khalidkhalid
    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
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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.

    #10060
    khalidkhalid
    Participant

    thanks

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘custom search filter’ is closed to new replies.