Search by Post Author only

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search by Post Author only

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 8 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36362
    HighFitness49
    HighFitness49
    Participant

    I have ASP installed on our dev site and I’m trying to build a search that searches only by the post author for a custom post type we have called ‘Classes’ – you can see the search form at https://dev.highfitness.com/find-a-class/ on the Search By Instructor tab.

    I have set up an index table for the Classes post type and set it to index the post_author under Index Custom Fields. I see that I have: “Items Indexed: 1 | Items not indexed: 0 | Total keywords: 6” which is the correct number of items, but seems like the wrong number of keywords as I only have 1 class in the system and 1 post author named ‘highadmin’ at this time.

    However, when searching for the only class I have in the system by the only author ‘highadmin’ I always get a “No results!” message until I backspace the field, and then it will show the one result. Searching by any of the other terms that could be indexed, like ‘Test’ also returns a “No results!” message.

    I was told by pre-sales support that searching by author is possible, so what am I doing wrong in setting this up?

    #36368
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you very much for the details, I have logged in to check and test the issues.

    I found the cause, the index table engine was not enabled on the search instance. I have enabled that for you: https://i.imgur.com/W5QrkKD.png
    I also assumed you only want the post author ot be indexed, so I disabled these fields: https://i.imgur.com/SnQW7JT.png
    The number of keywords can get higher as you expect, as the plugin does some processing and may create different variations for better matching.

    It should return the expect results now.

    Best,
    Ernest Marcinko

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


    #36372
    HighFitness49
    HighFitness49
    Participant

    That’s perfect, thanks for the assistance!

    #36373
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.