When you run a search (you call it a query) WordPress must use its DBMS (MariaDB / MySQL) to examine the entire text of every post, page, and user on your site. That takes time. There are some plugins out there to make search more efficient, but it is still work for your site to do.
I like the Relevanssi plugin for improving search.
Related Posts:
- Is there any difference between hooks posts_where with posts_join and posts_search performance wise?
- What is the most efficient way of implementing a favorite post system?
- Advanced Custom Fields – Query Efficiency
- Very slow query
- Difference between fragment caching and wp_cache
- Get the timout value of a saved transient?
- Mysql / WordPress killing my server with 80k users [closed]
- How to remove duplicate query on page load or make them cacheable
- How many queries are normal to execute on a WP site?
- wp_posts query slowing down my website
- Improve performance of slow query
- Is there any way to get all custom posts and all custom terms with it’s meta in few queries?
- Performance of wp_get_attachment_image_srcset() and wp_get_attachment_image_url()
- Add Hook for clearing transient when post is added
- What is the best way to cache pages and queries in WordPress?
- What is the best caching option for WordPress multi-site on non-shared hosting?
- Custom query_var causes displaying posts archive on front page
- Why does get_the_time(‘F j’) return November 30 for all posts?
- Query by one meta_key and sort by another (possibly NULL value)
- Search Terms – Querying on either description__like OR name__like in the same Term Query?
- Query & Sort Comments by custom comment meta
- is_archive() doesn’t work on public query var archive pages?
- How to get category link without a database query
- get_the_foo() in the loop – does it perform another query?
- How to count get_users query?
- Possible to get posts from multiple meta keys/values in a single query?
- mysql query paging
- How to display all posts with today’s same month and day only?
- Select User by Joining Multiple Meta Value Results
- Show featured image as background image from postQuery
- Is using WP Transients to save external data for a plugin the best/right way?
- Using $wpdb->update but confused on the WHERE in and SET
- You have an error in your SQL syntax – Help with query
- Make one query for adding entries to database
- add_query_arg() and empty variables inside
- Hook directly into query execution
- Query Strings and Woocommerce
- Style Post Differently In Query
- List all posts from past week grouped by sub-category
- Query Custom Post Type posts by Keyword/url slug
- WordPress post type “event” query string fix?
- Preload Cache for thousands of posts may be on non-production environment
- Form redirect with query vars to page
- Query to Get All Users from wp_users With NO matching user_id In wp_usermeta
- Group custom post listing in admin section
- WordPress custom setting page – add flashing message
- problem with sql query in wordpress plugin
- Custom query AFTER rss fetch_feed not working
- Multiple Category Query
- list all categories that have a certain word in title
- Passing parameters to a static front page
- wp_list_pages() refuses to output posts
- Where is the query in wp-login.php
- Can’t seem to do combined query AND sort?
- Order posts by recent comments
- query if page has not child
- sort query results by newest
- How to reset usual $query on search page to push custom $wpdb query there?
- Order by meta value pro first then meta value free in my search function
- Custom Query returns array, but I can’t see it’s elements
- How to delete all posts, categories and tags from WordPress database
- Ideas how to search & replace post_content when string contains a newline?
- How to insert Collate into WordPress search query?
- Query the WordPress database to get data together with replaced information
- $wpdb->prepare affecting the query?
- WordPress SQL search, how to handle SQL Injection?
- Optimize slow SQL query for multiple meta values
- prepare function sql safe method
- Query for Custom Post Type UI Does Not Loop All the Post
- Updating with $qpdb->query() always returns 0 rows affected
- How to manage a particular “order by” for get_search_query()?
- Query to view scheduled or draft post
- How to return count of custom post type posts with a specific custom field value via $wpdb?
- Help with Related Posts Function
- How to add a Variable to post query
- Sort a list of a CPT ( job) if a meta is empty
- Check if almost 10 year old – working code is up to date
- Restore WordPress Backup Locally?
- Trouble migrating custom post types from non-wordpress cms
- “order” does not affect order of custom query
- Create a new post on a specified publish date via link?
- Exclude Posts from a Widget
- New custom post type entries are not sorted correctly in admin using pre_get_posts
- Query String for the WP_QUERY parameters
- $wpdb query for price in custom field value
- Run an update query in a function
- Add generic page to WP_Query
- Advanced Custom Fields Query with Different Values of the Same Key
- No results for taxonomy archive page
- Multiple terms not working on taxonomy
- Sorting of coupons in the right way
- excludeCat function reverses order of blog posts
- Run search query again without pagination gives no results?
- Get multiple posts with some custom fields efficient
- WP_Query orderby meta key/value suddely stopped working
- nginx + wordpress: Best practices for configuring it to be secure, reliable, and fast? [closed]
- Where can I find the SQL to get the most used information by wordpress database?
- WooCommerce Total # orders [closed]
- How to show sticky posts on all pages of the pagination, not just the first page?
- How can I wordpress cache a database request with no existing plugin?