- January 22, 2022 at 11:20 pm #36362
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?January 24, 2022 at 10:36 am #36368
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,
If you like my products, don't forget to rate them on codecanyon :)
January 24, 2022 at 4:50 pm #36372
That’s perfect, thanks for the assistance!January 24, 2022 at 4:55 pm #36373
You must be logged in to reply to this topic.