Download the PHP package soderlind/wp-loupe without Composer

On this page you can find all versions of the php package soderlind/wp-loupe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-loupe

WP Loupe - Enhanced WordPress Search

A powerful search enhancement plugin for WordPress that delivers fast, accurate, and typo-tolerant search results.

Quick Links

TODO

Overview

WP Loupe transforms WordPress's search functionality by:

Want to write your own search plugin? Here's a guide to get started: Create a WordPress custom search

Features

Core Features

Search Capabilities

Developer Features

Installation

  1. Quick Install

    • Download wp-loupe.zip
    • Upload via WordPress Plugins > Add New > Upload Plugin
  2. Composer Install

  3. Post-Installation
    • Activate the plugin
    • Go to Settings > WP Loupe
    • Click "Reindex" to build the initial search index

As of version 0.1.4, plugin updates are handled automatically via GitHub. No need to manually download and install updates.

Usage

Basic Search

Advanced Search Operators

Settings

You can configure WP Loupe's search behavior and performance via the WordPress admin: Settings > WP Loupe.

General Settings

Post Types

Select which post types to include in the search index.

Field Weight

Weight determines how important a field is in search results:

Filterable Fields

Filterable fields can be used to refine search results:

Note: Fields with highly variable or unique values (like content) make poor filters as each post would have its own filter value.

Sortable Fields

Sortable fields can be used to order search results:

Advanced Settings

WP Loupe provides advanced configuration options to fine-tune your search experience:

Prefix Search

Typo Tolerance

Query Parameters

Languages

These advanced settings can be accessed in the WordPress admin under Settings > WP Loupe > Advanced tab.

FAQ

How does it handle updates to posts?

The search index automatically updates when content is created, modified, or deleted.

Will it slow down my site?

No. WP Loupe uses a separate, optimized search index and doesn't impact your main database performance.

Can I customize what content is searchable?

Yes, using filters you can control exactly what content gets indexed and how it's searched.

Does it work with custom post types?

Yes, you can select which post types to include in the Settings page or via filters.

Filters

wp_loupe_db_path

This filter allows you to change the path where the Loupe database files are stored. By default, it's in the WP_CONTENT_DIR .'/wp-loupe-db' directory.

wp_loupe_post_types

This filter allows you to modify the array of post types that the WP Loupe plugin works with. By default, it includes 'post' and 'page'.

wp_loupe_posts_per_page

This filter allows you to modify the number of search results per page. By default it's 10, set in WPAdmin->Settings->Reading->"Blog pages show at most".

wp_loupe_index_protected

This filter allows you to index posts and pages that are protected by a password. By default, it's set to false.

wp_loupe_field_{$field_name}

This filter allows you to change the field content before it is indexed.

By default, the following is used to remove HTML tags and comments from post_content. Among others, it removes the WordPress block comments.

wp_loupe_schema_{$post_type}

Modify the search schema for a specific post type. The filter name is dynamically generated based on the post type.

The schema configuration supports the following options for each field:

Default schema fields:

Behind the Scenes

This document explains the architecture and technical implementation of the WP Loupe plugin, detailing how it provides fast search functionality for WordPress sites.

Overview

WP Loupe is a search plugin that enhances WordPress's default search with a fast, SQLite-based search engine. The plugin creates and maintains search indexes for WordPress content and intercepts search queries to provide improved results.

Core Components

1. Search Engine

The plugin uses the Loupe search library, which provides:

Each post type has its own search index stored in separate SQLite databases:

3. Component Classes

Factory Pattern

WP_Loupe_Factory creates Loupe instances with appropriate configuration:

Schema Management

WP_Loupe_Schema_Manager handles search schema configuration:

Indexing

WP_Loupe_Indexer:

Search

WP_Loupe_Search:

Key Technical Features

1. Performance Optimizations

2. Database Management

WP_Loupe_DB handles:

3. Integration Points

Search Flow

When a user performs a search:

  1. WP Loupe intercepts the search query via posts_pre_query
  2. The search term is sanitized and prepared
  3. The plugin checks the cache for existing results
  4. If not cached, the query is sent to the appropriate Loupe instance(s)
  5. Results are combined and sorted by relevance
  6. The plugin formats results as WordPress post objects
  7. Results are cached for future queries
  8. The WordPress query object is updated with results and pagination info

Index Maintenance

The plugin automatically:

Admin Interface

The plugin includes a settings page that allows:

Technical Requirements

This architecture provides a balance between search quality, performance, and ease of integration with WordPress.

Acknowledgements

Copyright and License

WP Loupe is copyright Β© 2024 Per SΓΈderlind.

WP Loupe is open-source software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.

WP Loupe is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE for more information.


All versions of wp-loupe with dependencies

PHP Build Version
Package Version
Requires ext-pdo Version *
loupe/loupe Version ~0.9.0
yahnis-elsts/plugin-update-checker Version ^5.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package soderlind/wp-loupe contains the following files

Loading the files please wait ....