Open danielbachhuber opened 6 years ago
Yeah no kidding, I've been looking for this for a week.
It's also worth noting that if you're using the Query Monitor plugin, it does NOT reflect the filter change in the "Debug Bar: Solr" panel.
I'd recommend adding this to the documentation about using custom fields.
The 'pre_get_posts' seems to break search on admin pages. I added !is_admin() && !empty( $query->get( 's' ) )
to the conditional.
If you include a custom field value in indexing options, it's easy assume this would cause the document to appear in matching search results:
However, getting the document to appear in search results also requires some code monkery:
This should be way more intuitive.