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

Filterable Attributes do not get updated automatically in Search Index - Manual definition is required #1492

Open
omar-bfe opened this issue Jan 23, 2024 · 0 comments
Labels
1.x bug Something isn't working

Comments

@omar-bfe
Copy link

  • Lunar version: 0.7.x
  • Laravel Version: 10
  • PHP Version: 8.1
  • Database Driver & Version: Mysql 8.1

Expected Behaviour:

Filterable Attributes goes directly in search indexes

Actual Behaviour:

You need to define a new indexer and add the filterable fields in the array returned by getFilterableFields in the Indexer

Steps To Reproduce:

Just create a product add an attributes with Filterable toogeled on.

We need to add the same logic for searchable attributes to the filterable attributes means adding a function that will retrive all the filterable attributes and return them in the getFilterableFields function this function needs to be added to the attribute manifest like AttributeManifest::getSearchableAttributes we need to have the AttributeManifest::getFilterableAttributes

@omar-bfe omar-bfe added bug Something isn't working unconfirmed labels Jan 23, 2024
@omar-bfe omar-bfe changed the title Filterable Attributes do not get updated in Search Index - Manula definition is required Filterable Attributes do not get updated in Search Index - Manual definition is required Jan 23, 2024
@omar-bfe omar-bfe changed the title Filterable Attributes do not get updated in Search Index - Manual definition is required Filterable Attributes do not get updated automatically in Search Index - Manual definition is required Jan 23, 2024
@glennjacobs glennjacobs added the 1.x label May 20, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants