I want to search custom posts with taxonomies and custom fields using views query and the Relevanssi free plugin.
I've specified in Views that I want to search child posts and their parent.
I've built the Relevanssi index to include 3 taxonomy fields and a custom field of the child posts.
My problem is the search only returns results from the child post title ignoring the taxonomies and custom fields that belong to the post.
Thanks for any help
David
Can we be clear here, you have a one-to-many relationship between plants << complaints.
Your View specifies complaints as the Content Selection (i.e. you are querying complaints), even though in the output section you will be outputting some fields of the parent plant posts.
The taxonomy and custom fields you want to be included in the search belong to complaints, and your Relevanssi settings are set to include the taxonomy and custom fields in the search index.
Then when you enter a search term the View is not finding complaint posts that have the taxonomy or custom fields which include the search term text.
Is that an accurate description of your set up and the problem?
Hi Nigel,
Just noticed that if I enter the taxonomy or custom field terms into the default wordpress search box, (top right of the screen), I receive the complaint title for all posts containing the terms.
So it appears the Views searchbox is not treated the same as the wordpress default searchbox.
David, can I get access to see it happening on your site first, and then when I've satisfied myself that everything is set up as expected I can try to reproduce the problem on my own test site?
I'll mark your next reply as private to get credentials from you.
Hi Nigal,
What does "Filter out posts because they are not hierarchical" mean? - what is a hierarchical post?
You know what I'm trying to do, can you give me an idea how to avoid this message . As I said if I use the wordpress default search box (with Relevanssi) then it works, so why is the toolset query not returning any results?