INN / umbrella-sfpublicpress

San Francisco Public Press
https://sfpublicpress.org/
GNU General Public License v2.0
1 stars 4 forks source link

Question: What fields does the site search search by? #150

Closed MirandaEcho closed 4 years ago

MirandaEcho commented 4 years ago

If you search for an author, none of the articles by that author are appearing in the search results, only posts where his name is directly mentioned. Example: http://sfpublicpress.flywheelsites.com/?s=seth+rosenfeld&search+submit=

joshdarby commented 4 years ago

@MirandaEcho That's because by default, WP only searches through post content for the search query. Do we want to expand it to more fields?

MirandaEcho commented 4 years ago

What are the options, and is it a simple checkbox to update it, or something more?

joshdarby commented 4 years ago

@MirandaEcho It's more than a checkbox. We'd need to rework the actual query that WP is sending to the database.

We did it for Borderzine here https://github.com/INN/umbrella-borderzine/pull/41 so we could probably reuse most of that.

joshdarby commented 4 years ago

@MirandaEcho there's also the default built in Largo option that lets them switch the search from using WP search to using Google's custom search engine. https://largo.inn.org/guides/administrators/theme-options/advanced/