Giter Club home page Giter Club logo

claraleigh / algoliasearch-wordpress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from algolia/algoliasearch-wordpress

0.0 1.0 0.0 21.04 MB

:pill: Algolia Search plugin for WordPress is a drop in replacement for WordPress search. It also provides an optional "as you type" auto-complete experience.

Home Page: https://community.algolia.com/wordpress/

License: GNU General Public License v2.0

PHP 20.37% JavaScript 78.51% Shell 0.23% CSS 0.88%

algoliasearch-wordpress's Introduction

Search by Algolia – Instant & Relevant results

Contributors: algolia, rayrutjes
Tags: Search, Algolia, Autocomplete, instant-search, relevant search, search highlight, faceted search, find-as-you-type search, suggest, search by category, ajax search, better search, custom search
Requires at least: 4.4
Tested up to: 4.8
Stable tag: 2.4.0
License: MIT License, GNU General Public License v2.0

Search by Algolia is the smartest way to improve search on your site. Autocomplete is included, along with full control over look, feel and relevance.

Description

The plugin provides relevant search results in milliseconds, ensuring that your users can find your best posts at the speed of thought. It also comes with native typo-tolerance and is language-agnostic, so that every WordPress user, no matter where they are, can benefit from it.

About pricing

This plugin relies on the Algolia service which requires you to create an account here. Algolia offers its Search as a Service provider on a incremental payment program, including a free Hacker Plan which includes 10,000 records & 100,000 operations per month. Beyond that, plans start at $49/month.

Note that there isn’t a direct correlation between the number of posts in WordPress and the number of records in Algolia. Also note that we only offer support to paying plans. On average, you can expect to have about 10 times more records than you have posts, though this is not a golden rule and you could end up with more records.

Getting started guide

Once you have installed the plugin, you can follow the step by step guide provided here: https://community.algolia.com/wordpress/configuration.html

Relevance

Algolia enhances your search functionality with a completely customizable search experience which can be seamlessly integrated into your Wordpress theme. It lets you create a find-as-you-type experience or an auto-complete dropdown menu, which provides relevant results from the first keystroke. Our extension also automatically synchronizes data (posts, taxonomies etc.) in real-time, making sure that any updates to your site are available as soon as they are made.

Speed

Algolia returns results in under 35ms on an average – irrespective of whether you have 100s or 1000s of posts. Our state-of-the-art infrastructure and distributed search network ensures that your readers benefit from this, no matter where they are.

Accessibility

Search by Algolia gives you the ability to make all forms of data – blog posts, categories, users etc. – searchable from a single search bar. Algolia also gives you the ability to completely customize your search results based on criteria that makes sense for your business, such as popularity, date, relevance etc.

Built by developers for developers

Search by Algolia is also completely configurable and fully extensible by means of WordPress filters and hooks, letting you build a custom search experience or theme based on Algolia.

Want to see out how we did it?

Check it out here: Search by Algolia GitHub Repository

Join the Algolia community and meet thousands of search enthusiasts. We’re also always on the lookout for feedback: https://community.algolia.com/wordpress

Frequently Asked Questions

Where can I find Search by Algolia documentation and user guides?

Will Search by Algolia work with my theme?

Yes; Search by Algolia will work with any theme, but the Instant Search results page may require some styling to make it match nicely.

Where can I report bugs or contribute to the project?

Bugs can be reported either in our support forum or preferably on the Search by Algolia GitHub repository.

My issue is not listed here, what should I do?

Please check out the Frequently Asked Questions on our website which might have more information than this thread. It will also give you guidance about where to ask support if your question is not covered.

Installation

Minimum Requirements

  • PHP version 5.3 or greater (PHP 5.6 or greater is recommended)
  • MySQL version 5.0 or greater (MySQL 5.6 or greater is recommended)
  • Some payment gateways require fsockopen support (for IPN access)
  • Requires WordPress 3.7+ (WordPress 4.4+ is recommended because we will drop support below it in upcoming releases)

Visit the Search by Algolia server requirements documentation for a detailed list of server requirements.

Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser. To do an automatic install of Search by Algolia, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field type “Algolia” and click Search Plugins. Once you’ve found our search plugin you can view details about it such as the point release, rating and description. Most importantly of course, you can install it by simply clicking “Install Now”.

Manual installation

The manual installation method involves downloading our search plugin and uploading it to your webserver via your favourite FTP application. The WordPress codex contains instructions on how to do this here.

Updating

Automatic updates should work like a charm; as always though, ensure you backup your site just in case.

Screenshots

1. Algolia Settings.

Algolia Settings.

2. Indexing configuration.

Indexing configuration.

3. Instant-search results configuration.

Instant-search results configuration.

4. Autocomplete dropdown configuration.

Autocomplete dropdown configuration.

5. Autocomplete dropdown example.

Autocomplete dropdown example.

6. Instant-search results page example.

Instant-search results page example.

Changelog

2.3.0

  • Feat: Add a button for every index to push the settings
  • Feat: Add a filter to force settings update when re-indexing
  • Fix: Fix a regression when post splitting was disabled
  • Fix: Make sure attachments get removed from Algolia when deleted

2.2.3

  • Fallback to native search if Algolia call fails on search page
  • Avoid displaying fatal error when failing to reach Algolia in the admin

2.2.2

  • Correctly position autocomplete dropdown when located inside a fixed container

2.2.1

  • Rename 'page' variable to 'p' for ajax calls to avoid certain conflicts
  • Move CSS and JS files out of assets/ directory to prepare for publishing all tags
  • Avoid conflict with Polylang plugin

2.2.0

  • Ensure frontend dependencies are loaded (especially 'wp-util': wp.template())
  • Escape ET Divi builder shortcodes
  • Force autocomplete dropdown to be displayed above everything else

2.1.0

  • Introduce a new filter to allow to customize synced indices

2.0.1

  • Fix an error that would display PHP notices on search results pages

2.0.0

To upgrade from 1.7.0, follow the Upgrade instructions.

New features

  • Allow to re-order results by drag and drop from the autocomplete settings page
  • Allow to customize the header label of each result type of the autocomplete dropdown menu
  • Allow to disable powered by logo from the admin
  • Allow to re-index every index separatly
  • Keep existing index settings when re-indexing
  • Keep existing synonyms when re-indexing
  • Add a filter hook to specify the thumbnail formats to send to Algolia
  • Use new Algolia logo
  • Backend is now powered by Algolia when instantsearch.js is enabled in the frontend
  • New splitting strategy resulting in better relevancy and snippets
  • Add an "no results" template to the autocomplete dropdown

Enhancements & bug fixes

  • Remove custom post type algolia_task
  • Remove custom post type algolia_log
  • Do not rely on wp_footer begin called in themes
  • Bump number of items to index per batch up to 100
  • Updated JS dependencies
  • Update Algolia API Client
  • Remove local queue in favor of in browser queue
  • Remove the Algolia logger
  • Removed title 1-6 from records
  • Reduced the default size of json payloads
  • Push correct thumbnail URLs for attachments
  • Protect autocomplete and instantsearch from XSS
  • Remove outdated polyfills for empty search queries
  • Removed tether for autocomplete dropdown placement
  • Resolved conflict with Jetpack plugin
  • Resolved conflict with Toolset plugin
  • Fixed an issue were autocomplete settings needed to be saved again
  • The plugin does not push all image sizes anymore

1.7.0

To upgrade from 1.6.0, follow the Upgrade instructions.

  • Fix the condition to remove the powered by
  • Use autocomplete.js in noConflict mode
  • Also append Cookies to wp_remote_post test calls on indexing screen
  • Update WordPress tested up to 4.7
  • Ensure wp-util is always loaded before instantsearch.js or autocomplete.js
  • Enable Yoast frontend hooks when indexing records
  • Check if the API is reachable before executing CLI commands

1.6.0

  • Re-index indices instead of moving them when index name prefix is changed
  • Keep the synonyms configured on the Algolia dashboard when we re-index
  • Add a command to the WP-CLI integration to re-index a single index
  • Allow API Keys and index name prefix to be configured with constants to ease switching between environments

1.5.0

  • Split content attribute over several records if greater than 5000 bytes
  • Support changing prefix on indices having replicas
  • Add a constant to disable post splitting
  • Fix an issue where the index name would rely on a non existing 'label' key of the post type object
  • Replace Visual Composer shortcodes in posts

1.4.1

  • Fix the validity check for the Admin API key in the settings tab

1.4.0

  • Introduce the algolia_loopback_request_args filter to override loopback args. Allows queue to work with Basic Authentication
  • Allow user generated Admin API keys
  • Resolve logging performances causing queue to crash before being able to move _tmp indices to their final destination
  • Make sure "shortcodes" are parsed inside post excerpts
  • Add support for non UTF-8 content
  • Display a more explicit error when credential validation fails
  • Add a filter algolia_search_params to be able to filter backend search parameters

1.3.0

  • Make the plugin play nicely with the W3 Total Cache plugin
  • Fix an issue where the Cache Enabler plugin would break the autocomplete when JavaScript was inlined
  • Introduced a constant to hide admin help notices
  • Add WP CLI process-queue & re-index-all commands
  • Allow theme authors to get full control over the Algolia templates location
  • Stop the queue instead of trashing failed tasks
  • Allow users to delete all pending tasks
  • Allow users to stop the queue when it is running

1.2.0

  • Fix broken pagination on instant search page
  • Fix conflicts with plugins also using the PHP simple_html_dom library
  • Limit the maximum number of log entries to 50 by default
  • Fix an issue where empty errors would get logged during queue processing
  • Introduce class .no-autocomplete to disable autocomplete on search inputs
  • Add support for a new constant ALGOLIA_LOOPBACK_HTTP that allows forcing HTTP in queue loopback

You can access older changes here

Upgrade Notice

1.3.0

We fixed some issues in the templates/autocomplete.php and templates/instantsearch.php files.

If you have copied the templates folder in your theme folder, you should make sure you manually patch the following fixes:

1.2.0

We fixed some issues in the templates/autocomplete.php and templates/instantsearch.php files.

If you have copied the templates folder in your theme folder, you should make sure you manually patch the following fixes:

algoliasearch-wordpress's People

Contributors

bobylito avatar gaetanfa avatar haroenv avatar jedrzejchalubek avatar lukyvj avatar neilrichler avatar peterdavehello avatar raae avatar rayrutjes avatar redox avatar royduin avatar shipow avatar sir-daniel avatar spone avatar tobiasvielmetter avatar vvo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.