Search Results

your search of ""

What is it WPSOLR ? For dummies

WPSOLR replaces the WordPress search by a faster and more accurate search powered by Elasticsearch or Apache Solr. The WPSOLR user guide will guide you through the configuration process. The guide is shared by WPSOLR and WPSOLR PRO, and therefore some steps are not available to WPSOLR. Step by step, you will be able to: Understand […]

January 27, 2017 admin

Configure your indexes

Indexes store the data that you want to be searched. Most installations will need one, and only one, index that will store all the WordPress data searchable. Multilingual sites working with WPML or Polylang will need more indexes, exactly one index per language. One index will contain the English data, one the French data, and […]

March 9, 2017 admin

Collapse taxonomy hierarchies

Collapse facet hierarchies If your stores uses a lot of parent-child categories and you want to use them as facets (filters), it can be a real mess visually. What you need then is a way to collapse your categories: only show the children categories when the visitor needs to show and select them.   Here is the […]

April 7, 2017 admin

Radiobox & Checkbox Layout

    Facets layouts: radio boxes, check boxes Radio boxes and checkboxes are simple layouts used to show texts as a list of selectable items. Check boxes enable to select several items of the same facet. It can be used in two situations: The facet items are multivalued: a post can have several values for the attribute or […]

April 7, 2017 admin

Colour Picker Layout

Rather than showing the texts of colours (“red”, “blue”, “green” …) in a facet, why not show an image with the color as the background ?. The idea is to associate colours to your field values, by picking a colour with a colour picker. Choose the layout “Colour picker”   Select the layout “Colour Picker” Open […]

April 7, 2017 admin

Create an Elasticsearch index

Good news for you: there is no need to create an Elasticsearch index before using it in WPSOLR. Why ? Because WPSOLR will create one for you, automatically. Even better, it will also configure it during the nex step. But I prefer to create it by myself! WPSOLR creates an index with the default parameters proposed by […]

March 13, 2017 admin

Index – Document

Name WpSolrFilters::WPSOLR_FILTER_SOLARIUM_DOCUMENT_FOR_UPDATE   Short description Modify a Solarium or Elastica update document before sending to Solr for indexing. Long description A Solarium update document is ready to be sent to the Apache Solr index. You want to change some of it’s properties, for instance add Solr fields. Examples Search in the plugin’s code (we eat our own […]

October 11, 2016 admin

Options – Solr dynamic field types

Name WpSolrFilters::WPSOLR_FILTER_SOLR_FIELD_TYPES Short description Solr dynamic field types shown in admin. Long description You want to add a Solr dynamic field type, to extend the schema.xml delivered by the plugin. Examples Search in the plugin’s code (we eat our own dog food).

October 12, 2016 admin

Search results – Replace the default WP search by WPSOLR search

Name WpSolrFilters::WPSOLR_FILTER_IS_REPLACE_BY_WPSOLR_QUERY Short description Force WPSOLR search upon WP search. Long description This filter concerns your theme’s search template only. You want to replace WP search, or display WPSOLR facets widget, on a page url which is not a search page (is_search() is false). Examples Search in the plugin’s code (we eat our own dog food).

January 9, 2017 admin

Search results – Javascript parameters

Name WpSolrFilters::WPSOLR_FILTER_JAVASCRIPT_FRONT_LOCALIZED_PARAMETERS Short description Parameters of the search javascript. Long description You want to change the search javascript parameters. Examples Search in the plugin’s code (we eat our own dog food).

October 12, 2016 admin

Search query – Query

Name WpSolrFilters::WPSOLR_ACTION_SOLARIUM_QUERY Short description Modify the Solr query by using the Solarium query or the Elastica query.   Long description You want to change some of the many Solr query parameters: sorts, filters, boosts, facets, …. Examples Search in the plugin’s code (we eat our own dog food).

October 12, 2016 admin

Apache Solr port 8983 is blocked

Message We could not connect to your Solr server. It’s probably because the port is blocked. Please try another port, for instance 443, or contact your hosting provider/network administrator to unblock your port. Solr HTTP error: HTTP request failed, Failed to connect to localhost port 8983: Connection refused When During index configuration in wpsolr admin. […]

September 27, 2016 admin

Why is my ajax search box not redirecting to the ajax search page ?

As detailed in How does the ajax search work ?, wpsolr will try to replace your theme’s search boxes with its own. But, if your theme does not use the standard WordPress “get_search_form” filter to build its search boxes, nothing will happen. A way to overcome that issue is to insert a link to the ajax […]

September 26, 2016 admin

How to use jQuery selectors ?

jQuery selectors in wpsolr are used to associate live suggestions and geolocation to your theme’s search box(es). When the wpsolr javascript code needs to identify your search box(es), to attach specific events, it does so by using jQuery selectors. What is jQuery ? jQuery is a javascript library, widely used to simplify the manipulation of the elements […]

October 5, 2016 admin

WooCommerce pack – Can I add more sort items than the default ?

Yes, from WPSOLR 14.6, you can. How does it work ? WooCommerce sort drop-down list contains a few default sort items. But, as you know, WPSOLR is able to sort by virtually any product custom field. Just select the option “Replace WooCommerce drop-down list content with WPSOLR’s” in your WooCommerce pack, et voilà! What are the […]

November 5, 2016 admin

Which search templates are available ?

With wpsolr, you can choose between two templates to display your search results.   Wpsolr search template This is the template delivered by wpsolr. It is an Ajax template, and shows all the features in a custom search page, thanks to the wpsolr’s shortcode. This template displays all the wpsolr features: A search box with live suggestions A sort list Facets […]

October 5, 2016 admin

Faceted search – What is it ?

What is a Faceted search ? Faceted search is the biggest thing that happened in the search world. Even today, on many websites, a visitor is required to fill in some search form criteria. Before submitting the search form and getting results. Even on big WooCommerce websites. This is a big show stopper, as many visitors […]

October 21, 2016 admin

How to prevent bots from crawling my WordPress search results ?

The problem If your database contains a large number of posts or products, then your search can generate many pages of results. The bots will crawl all those search pages, which can lead to tens of thousands of pages loaded every single day. Perhaps you want to let your pages crawled, perhaps you don’t. There […]

December 2, 2016 admin

Geolocation demo – Paris (France)

For our Geolocation search demo, this post represents the city of Paris, France. A custom field “city” has been added, containing it’s (longitude, latitude) coordinates: (48.8567,2.3508)

October 10, 2016 admin

ACF File field with Solr search demo

This post si a demo of the ACF File field. It contains an ACF file field linking to a PDF document url: Each time the post is saved, the PDF document is downloaded, it’s content extracted and inserted in the post content, during Solr indexing. See details. Then, if you search for a keyword contained […]

January 24, 2017 admin