alleyinteractive / searchpress

Elasticsearch integration for WordPress.
84 stars 12 forks source link

Add 's' as an Alias for 'query' in SP_WP_Search #173

Open kevinfodness opened 9 months ago

kevinfodness commented 9 months ago

Description

SP_WP_Search accepts "WP_Query-like arguments" but it uses query as the search term instead of s like WP_Query does. Let's make it possible to use s and have it just be an alias for query, where if query isn't set but s is, use its value.

Use Case

As a developer, I want to use SP_WP_Search like I would use WP_Query.