Search Results

your search of ""

Child theme

Introduction This documentation explains how to setup and customise wpsolr with some of the best themes search page on the market. Specific work on each theme Each theme delivers a search page template, but we would like to improve it, and display our nice Widgets: the facets and the sort list. The content of the facets […]

September 28, 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. Catching the filter add_filter( WpSolrFilters::WPSOLR_FILTER_SOLR_FIELD_TYPES, array( $this, ‘wpsolr_filter_solr_field_types’, ), 10, 1 ); Filter parameters 1) $field_types – Dynamic field types shown in the admin screen – array […]

October 12, 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

Multilingual search

A World class multilingual search WPSOLR is perfectly integrated with WordPress most popular multilingual plugins: WPML and Polylang. Your search should not be less multilingual that your posts, products, or pages, isn’t it ? And true multilingual search is complex, because it has to cope with many layers, from search content, to static and dynamic UI elements. We […]

January 13, 2017 admin

Activate Extensions

WPSOLR PRO is built with WPSOLR as it’s core, plus extensions. Extensions are groups of features that extends the core capabilities with WordPress actions and filters. Each extension can be individually activated, deactivated, and configured. How to find extensions ? They are all placed in the tab “Activate Extensions”, but some of their configuration can be found in other tabs. […]

March 14, 2017 admin

Guides

April 3, 2015 admin

Which php version should I use with wpsolr ?

Wpsolr requires some external libraries with namespaces. Which require php 5.3.

September 29, 2016 admin

Search results – Posts

Name WpSolrFilters::WPSOLR_ACTION_POSTS_RESULTS Short description Modify posts before rendering in the theme search template. Long description Documents have been retrieved from a Solr query, and transformed in posts. You want to change the posts before they are rendered by your theme’s search template.   Catching the action add_action( WpSolrFilters::WPSOLR_ACTION_POSTS_RESULTS, array( $this, ‘wpsolr_action_posts_results’, ), 10, 2 ); Action parameters 1) […]

October 11, 2016 admin

ACF pack – How are managed repeaters data and flexible content layouts ?

Definition In the plugin “Advanced Custom Fields”, repeaters and  flexible contents are recursive fields. They are containers for other simple fields (text, select, …), or other recursive fields. Example For instance, a flexible content can contain a files repeater. The files will then be at the third level of the ACF fields hierarchy. And, in that example, […]

October 30, 2016 admin

How to index and search custom fields stored in custom tables ?

The problem Let say you’re using a plugin that does not store it’s post fields in custom fields meta. But you’d like to filter those fields, sort them, translate them, as WPSOLR does for all other custom fields. For instance, WooCommerce product attributes and variations are stored in a custom table. The solution described below is used internally by […]

November 30, 2016 admin

What is our Elasticsearch php client library ?

Elasticsearch is a Web API, as explained here. To get access to Elasticsearch from the php plugin code, we could have built our own http library, but it would have been crazy. Instead, we are using the Elastica php Elasticsearch client library. It is a fine object oriented code which takes care of wrapping/unwrapping php objects to and from json over http. We […]

March 8, 2017 admin

Quick start

The Dasboard Interface for “WP Solr” Plugin Upon activating the plugin, a Solr Settings menu is created in the Dashboard menu options. Select the menu option to configure the plugin. Configure Solr Before you continue, refer to the Installation Guide to Configure Solr. Upon downloading the schema.xml and solrconfig.xml, you can continue to the other […]

September 25, 2016 admin

Product – $150 – Price range demo

This $150 post contains a custom field ‘price_range_demo’, configured with a type ‘Numeric’. It will appear in the facet ‘Price range demo’, configured to be shown as a range.

March 26, 2017 admin

What is WPSOLR Commerce ?

WPSOLR Commerce is WPSOLR on steroids. Both plugins are using Apache Solr, but the comparison ends here. WPSOLR is monolithic, when WPSOLR Commerce is component based. WPSOLR manages a search page as a monolithic block, when WPSOLR Commerce’s components can cooperate in thousands of ways to build hundreds of searches. WPSOLR Commerce features – Build your own […]

October 21, 2016 admin

Is there a widget to display the search sort list where I need ?

Yes, there is a Widget for that. In your WordPress admin, go to menu Appearance->Widgets. Drag&drop the widget “WPSOLR Sort list” to the widget area your theme is providing. It could be on your theme search page for instance. I cannot see the “WPSOLR Sort list” widget in my admin or in my front-end widget […]

September 26, 2016 admin

What is our Solr php client library ?

Apache Solr is a HTTP API, as explained here. To get access to Apache Solr from the php plugin code, we could have developed our own http wrapper, but it would have been foolish. Instead, we are using the Solarium php Solr client library. It is a neat object oriented code which takes care of […]

October 11, 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

index – embedded files

Name WpSolrFilters::WPSOLR_FILTER_GET_POST_ATTACHMENTS Short description Embed files content  in a post body. Long description You want to add files content to an indexed post body, whilst the post is not an attachment itself. Files can be attachments from the media library, or urls pointing to external resources. Catching the filter add_filter( WpSolrFilters::WPSOLR_FILTER_GET_POST_ATTACHMENTS, array( $this, ‘filter_post_embedded_files’ ), 10, 2 ); Filter parameters […]

October 12, 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

Connect to an Apache Solr index

When your Apache Solr index is created, and setup with the right configuration files, it’s time to use it. For that, you will setup a connection to the index as seen in the following screen.   Here, you have two choices: Use a temporary Apache Solr index, as described before. Connect to your existing apache Solr index, […]

March 13, 2017 admin