Forums › Forums › Search & Filter Pro › Relevanssi and Filters
- This topic has 15 replies, 2 voices, and was last updated 8 years, 2 months ago by
Trevor.
-
Trevor(Private) August 10, 2017 at 10:38 am #125430
I suspect it has more to do with you using the same taxonomy twice in the form. This you should not do. I do not wish to edit your site myself, but you need to make separate taxonomies for Region and Day of the Week so that you do not need to use the advanced settings in these form fields. This post tries to explain this a bit better (you can use a plugin to switch category terms from media-category to any new taxonomy that you make, so it is not so hard to do). It is a really awful preachy lecture I wrote:
https://support.searchandfilter.com/forums/topic/multiple-categories-combination/#post-55166
Sorry about the tone, but the message is right and it links to good plugins (except taxonomy switcher I think). If I missed anything (I probably did, my apologies), follow up and nudge me.
Anonymous(Private) August 10, 2017 at 4:59 pm #125494Hey so I removed the second instance of the Taxonomy and it appears to work fine for single word searches but not so well if there’s multiple words. Here’s an example:
http://nmfma.identifiedmedia.com/?page_id=2287&_sf_s=santa%20fe
If you search anything else like Taos or Albuquerque it will work perfectly fine. Unfortunately the client this project for is in Santa Fe so I need to figure out a solution.
Anonymous(Private) August 10, 2017 at 7:00 pm #125530It appears to do the same thing.
http://nmfma.identifiedmedia.com/?page_id=2287&_sf_s=%22santa%20fe%22
Anonymous(Private) August 11, 2017 at 11:35 pm #125696I was also able to get Silver City to work but still stumped on the Santa Fe or Santa Rosa or just Santa doesn’t work. I also tried a few others and found that Farmington is another that doesn’t work when Relevanssi is enabled. In attempts to go without that plugin I tried adding this code to the search but that didn’t seem to work through S&F.
Trevor(Private) August 12, 2017 at 8:43 am #125729So, what we know is that it is not the format (i.e. a two word name) that causes this.
When Relevanssi is not enabled, searching works OK.
I have not come across a problem like this before, so that would suggest something is wrong in the server/WordPress setup.
If you are OK with searching the WP database, I would suggest you search the Relevanssi cache table to see if those posts are in there, and if it has cached those names.
There is a WP Plugin called ARI Adminer that will let you do this, if you do not know how to access the database any other way.
Anonymous(Private) August 13, 2017 at 4:57 pm #125814The wp_relevanssi table has “santa” and several of the post IDs matching the results that it is pulling back correctly. The wp_search_filter_term_results and wp_search_filter_cache also looks to have the correct post IDs. I’m not sure what else to look at in the database. The search results are coming back correctly on the page as expected it’s just not populating the search form drop-menus correctly. Would that point to some other conflict like something with Javascript or something else in the theme?
-
AuthorPosts