- What is pollora/meilifacets used for?
- pollora/meilifacets provides filters, facets, and search suggestions for Pollora applications using Meilisearch as the backend. It is designed to serve these results in milliseconds without running WordPress queries. Use it when you need fast faceted search or filtering on top of a Meilisearch index.
- How do I install pollora/meilifacets in a Laravel project?
- Install the package with Composer using composer require pollora/meilifacets. Then review the repository README for any required configuration or publishing steps. Because it is a Composer package, Laravel discovery and service provider registration should follow the package setup.
- Does MeiliFacets run WordPress database queries for filters or facets?
- No. The package description explicitly states that filters, facets, and suggestions are served by Meilisearch with no WordPress query involved. This keeps response times low and avoids loading the WordPress database for search UI interactions. You still need to keep your Meilisearch index populated with the relevant content.
- Which Laravel versions are supported by pollora/meilifacets?
- The provided context does not list exact Laravel version constraints. Check the package composer.json, README, and release notes in the Pollora/MeiliFacets repository for the supported Laravel and PHP versions. Confirm compatibility before adding it to an existing application.
- How does pollora/meilifacets connect to Meilisearch?
- MeiliFacets uses Meilisearch to serve filters, facets, and suggestions instead of querying WordPress. You will need a running Meilisearch instance and the appropriate indexes for your content. Review the package configuration for connection details and index settings.
- Can I use MeiliFacets for faceted navigation and filtering?
- Yes, faceted navigation and filtering are core use cases for this package. It returns facet and filter data from Meilisearch quickly, so you can build responsive filter interfaces. This is especially useful when you want to avoid WordPress queries for every filter change.
- How are search suggestions handled in MeiliFacets?
- Search suggestions are served by Meilisearch, which is designed for low-latency search interactions. The package provides the suggestion layer for Pollora applications without relying on WordPress queries. Configure the relevant Meilisearch index and suggestion settings according to the README.
- Is pollora/meilifacets suitable for production use?
- It is intended to serve facets and suggestions quickly through Meilisearch, which can reduce load on WordPress. For production, plan for Meilisearch availability, index synchronization, and monitoring. Also verify the package release history and compatibility with your Laravel and Pollora versions.
- How should I test an application using MeiliFacets?
- Use your normal Laravel testing setup and point the package at a test Meilisearch instance or mock the search layer. Assert that filter, facet, and suggestion responses match the indexed data. Check the repository for any included tests or recommended testing configuration.
- What are alternatives to pollora/meilifacets?
- Alternatives include native WordPress search, Laravel Scout with Meilisearch, a direct Meilisearch client, or other faceted search packages. MeiliFacets is specifically aimed at Pollora applications that want Meilisearch-powered filters, facets, and suggestions without WordPress queries. Evaluate alternatives based on your existing search index and Laravel integration needs.