Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support passing facet prefix, contains, and contians.ignoreCase to Solarium library setPrefix method #102

Open
wants to merge 2 commits into
base: 4.x
Choose a base branch
from

Conversation

aasarava
Copy link

@aasarava aasarava commented Oct 22, 2024

https://www.drupal.org/project/search_api_solr/issues/3482328

Solr has a facet.prefix option that can be used to filter the facet options ("constraints") that are returned, based on the first characters of a field's indexed value. This is handy for building autocomplete fields for facets that have too many options to list all at once.

The search_api_solr module just needs to check if a developer has passed a prefix in to the facet options and then call the Solarium library's setPrefix() method accordingly.

UPDATE: Also added support for Solr's facet.contains and facet.containsIgnore options.

@aasarava aasarava changed the title Support passing facet prefix to Solarium library setPrefix method Support passing facet prefix, contains, and contians.ignoreCase to Solarium library setPrefix method Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant