WPSolr logo

WordPress AI Recommendations
- SEO, conversions -


Introduction to WooCommerce Weaviate

Published 7 June, 2023
– Last updated 8 June, 2023

Table of Contents


WooCommerce Weaviate is a powerful search engine that lets users search for products on WooCommerce-powered online stores. It relies on the Weaviate technology, which is an open-source, decentralized search engine that is designed to handle large-scale data sets.

With WooCommerce Weaviate, online store owners can provide their customers with a fast and efficient search experience. It’s incredibly easy to set up and use and can be customized to meet the specific requirements of each online store.

Using WooCommerce Weaviate with PHP Client

To get started with WooCommerce Weaviate, you’ll first need to install the PHP client for Weaviate. You can do this by running the following command in your terminal:

composer require seithq/weaviate-php-client

Once you’ve installed the PHP client, you can start using it to communicate with Weaviate. Here’s an example of how you can use the PHP client to search for products:

require_once 'vendor/autoload.php';
use Weaviate\Client\ApiException;
use Weaviate\Client\Configuration;
use Weaviate\Client\Api\GraphQLApi;
use Weaviate\Client\Model\GraphQLRequest;
use Weaviate\Client\Model\GraphQLResponse;

$config = Configuration::getDefaultConfiguration()->setApiKey('ApiKeyAuth', $api_key);

$query = <<<GRAPHQL
  Search {
   Products {
    SearchResult {
     edges {
      node {
       price(currencyCode: "USD")

$request = new GraphQLRequest([
'query' => $query,

$api_instance = new GraphQLApi(new \GuzzleHttp\Client(), $config);

try {
 $result = $api_instance->graphqlPost($request);
 $response = $result->getData();

 // do something with the response
} catch (ApiException $e) {
 // handle the exception

This code sends a search query to Weaviate and returns a list of products that match the search criteria. You can customize the search by changing the `query` string.

How WPSOLR Can Help

WooCommerce Weaviate is a powerful search engine, but it can be even more powerful when used in conjunction with WPSOLR. WPSOLR is a plugin that allows you to customize and enhance your WordPress search capabilities.

With WPSOLR, you can add custom search filters, search through custom post types, and add autocomplete functionality to your search box. When used with WooCommerce Weaviate, WPSOLR can help provide users with an even better search experience.


WooCommerce Weaviate is an excellent search engine for WooCommerce-powered online stores. It’s easy to set up and use and provides users with a fast and efficient search experience. When used with WPSOLR, it becomes even more powerful, giving users an even better search experience.

Related posts ... not powered by WPSOLR 😊

Reranking is the new frontier!

Cohere‘s reranking API is indeed a very neat way of improving search quality without downgrading performance. I’m wondering if it can also improve Cohere‘s own multi-language