Better Search – Relevant search results for WordPress

説明

Better Search replaces the default WordPress search engine with a more powerful search engine that gives search results relevant to the title and content of the post. This means that visitors to your blog will find what they are looking for quicker than if you didn’t have Better Search installed.

Better Search can search through not just posts, but also pages and other custom post types. Let your visitors find what they are looking for.

The plugin is packed with options to allow you to easily customize the output. You can also fine tune the results by assigning a greater weight to either the title or the content. The default mode is a seamless integration with your WordPress theme. And, for power users, Better Search supports templates for that extra something.

And for even more advanced users, Better Search is packed with filters and actions that allow you to easily extend the plugin’s feature set.

Additionally, the plugin also tracks the searches and you to display a “search heatmap” of the most popular searches. Support for WordPress widgets will allow you to easily add this heatmap to your theme’s sidebar or footer.

機能について

  • Automatic: Once activated, Better Search will automatically replace your default WordPress search with more relevant search results
  • Seamless integration: Search results are perfectly integrated into your theme without the need for custom search templates
  • Relevance: Search results are automatically sorted by relevance. You can also turn off relevancy based searching, in which case, results are sorted by date
  • Control the results: Search within title, content, excerpt, meta fields, authors, tags and other taxonomies and comments
  • Popular searches: Find out what visitors are searching for on your blog. Display a list of popular search terms (daily and overall) on your blog in the form of a heatmap. Widget support for easy integration in your theme as well as a shortcode [[bsearch_heatmap]]
  • Customisation: Use your own template file for perfect integration into your blog template. Input your own CSS styles in the Custom Styles tab in the Settings Page. Check the FAQ for more information
  • Supports cache plugins: Works with caching plugins like WP-Super-Cache and W3 Total Cache
  • Profanity filter: customize the list of stop words that will automatically be filtered out of search queries
  • Translation ready: Better Search is translation ready

参加・貢献

Better Search is also available on Github
So, if you’ve got some cool feature that you’d like to implement into the plugin or a bug you’ve been able to fix, consider forking the project and sending me a pull request.

Plugins by WebberZone

Better Search is one of the many plugins developed by WebberZone. Check out our other plugins:

  • Top 10 – Track daily and total visits on your blog posts and display the popular and trending posts
  • WebberZone Snippetz – The ultimate snippet manager for WordPress to create and manage custom HTML, CSS or JS code snippets
  • Knowledge Base – Create a knowledge base or FAQ section on your WordPress site
  • Contextual Related Posts – Display related posts on your WordPress blog and feed
  • Auto-Close – Automatically close comments, pingbacks and trackbacks and manage revisions on your WordPress site

スクリーンショット

  • Options in WP-Admin - General options
  • Options in WP-Admin - Search results options
  • Options in WP-Admin - Heatmap options
  • Options in WP-Admin - Custom styles
  • Options in WP-Admin - Tools
  • Better Search widget
  • Better Search Popular Searches table in Admin

インストール

WordPress install

  1. Navigate to Plugins within your WordPress Admin Area

  2. Click “Add new” and in the search box enter “Better Search”

  3. Find the plugin in the list (usually the first result) and click “Install Now”

Manual install

  1. Download the plugin

  2. Extract the contents of better-search.zip to wp-content/plugins/ folder. You should get a folder called better-search.

  3. Activate the Plugin in WP-Admin.

  4. Goto Settings > Better Search to configure

  5. Goto Appearance > Widgets to add the Popular Searches sidebar widgets to your theme

  6. Optionally visit the Custom Styles tab to add any custom CSS styles. These are added to wp_head on the pages where the posts are displayed

FAQ

If your question isn’t listed there, please create a new post in the WordPress.org support forum. I monitor the forums regularly. If you’re looking for more advanced paid support, please see details here.

Can I customize the output?

Better Search has a huge set of options that help you customize the output or fine tune the results without leaving the comfort of your WordPress site. Goto Settings > Better Search to configure.

The plugin also supports the use of template files within your theme. You can create a file called better-search-template.php in your theme’s directory and the plugin will use it to display the results.

My search words are getting filtered or *How does the profanity filter work*

Better Search includes a very cool profanity filter using the script from Banbuilder. You can customize which list of words you want to filter out from the Better Search settings page. Find the setting called “Filter these words:”. The plugin will automatically strip out both partial and complete references of these words.
You can turn the filter off by emptying the list.

Know of a better profanity filter? Suggest one in the forums.

評価

2022年5月20日 1 reply
Thank you for creating a plugin that works right from the start!
53件のレビューをすべて表示

貢献者と開発者

Better Search – Relevant search results for WordPress はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Better Search – Relevant search results for WordPress” は1ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Better Search – Relevant search results for WordPress” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

3.2.2

  • 改善点:

    • Use get_match_sql instead of score in the order by clause
    • Support meta_query argument
    • New filter: better_search_query_date_query
  • バグ修正:

    • Checkbox in admin page always showed as modified

3.2.1

Release post: https://webberzone.com/blog/better-search-v3-2-0/

  • Bug fixes:

3.2.0

  • Enhancements/modifications:

    • Only highlight whole words
    • Censor character has been modified to be a blank phrase instead of a space. Additionally multiple spaces will be replaced by a single space.
    • Description of the taxonomy is also searched
  • バグ修正:

    • mySQL error was generated if there were + signs with banned words in BOOLEAN mode
    • Fixed bsearch_form shortcode incorrect parameters
    • Queries with apostrophe gave errors
    • PHP 8.1 compatibility
    • Security fix when clearing cache

3.1.0

Release post: https://webberzone.com/blog/better-search-v3-1-0/

  • Features:

    • New filter bsearch_template_query_args in the default template to modify arguments array passed to Better_Search_Query
    • New option Highlight followed links: if enabled, the plugin will highlight the search terms on posts/pages when visits them from the search results page
    • the_bsearch_excerpt() will now show the relevant part of the excerpt where applicable by default. You can override the arguments by filtering the_bsearch_excerpt_args
  • Enhancements/modifications:

    • New argument show_post_types for get_bsearch_form() set as default to false. Arguments can be modified by overriding the filter bsearch_form_args
    • Highlighting now uses the referer and no longer requires a special query variable
  • バグ修正:

    • Post thumbnail size was ignored by the_bsearch_post_thumbnail
    • HTML entities were displayed instead of being processed
    • Show credit displayed twice
    • post_type arguments were incorrectly processed when empty
    • PHP error in Better_Search::set_topscore()
    • Resetting settings caused an infinite loop

3.0.3

Release post: https://webberzone.com/blog/better-search-v3-0-0/

  • Bug fixes:
    • With seamless mode OFF, by default, all post types were being pulled even those not selected in the settings page
    • With seamless mode ON, caching incorrectly gave the same set of results
    • Exclude categories didn’t save properly if the field is blanked out

3.0.2

  • Enhancements/modifications:

    • New options to disable the display of relevance, post type, author, post date and taxonomies list on the custom search results page
  • バグ修正:

    • Fixed excerpt_length setting not used in the default template
    • All required attributes are now passed to the shortcodes

3.0.1

  • Enhancements/modifications:

    • New option to disable the automatic addition of the stylesheet
    • Custom search results page now displays Sort by and Sorted by
    • New constant BETTER_SEARCH_VERSION that is used to enqueue scripts and styles
  • バグ修正:

    • If no excerpt_length is passed, the plugin will use the default value from the settings page
    • Better_Search is only initiated if it is a search results page
    • Custom results page excerpt is now highlighted

3.0.0

  • Features:

    • New classes Better_Search_Query and Better_Search. The latter is a wrapper for WP_Query and brings all the power of WP_Query to Better Search. The former is the core class that filters the required functions as well as replaces the older seamless mode implementation
    • New settings to search taxonomies, comments, excerpt, meta, authors and comments. These will all return the posts corresponding where the search term is found in the above fields
    • New parameter bydate if set to true will sort posts by date
    • Advanced Search form now displays the select dropdown of post types that allows to search a specific post type
    • Highlight search terms on pages referred from the search results page
    • New stylesheet which is enqueued on search results page and singular posts/pages
  • Enhancements/modifications:

    • hellip wrapped in bsearch_hellip span tag for easy access
    • Transients will be deleted when the plugin is removed
  • バグ修正:

    • Resetting settings caused issues for the default styles and color fields
    • Uninstalling didn’t delete the option key from database.
  • Deprecated:

    • PHP 5.x support has been dropped and attempting to install the plugin on these installs will throw errors!
    • Multitude of functions have been deprecated. Check the deprecated.php file for the full list. Deprecated functions will also throw up a warning
    • Aggressive Search mode has been removed