What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello, in the second challnge of "Content & Search" it seems like the query expander doesn't hav

Posts: 48 🧑🏻‍🚀 - Cadet
edited November 2020 in Academy

Hello, in the second challnge of "Content & Search" it seems like the query expander doesn't have any effect anymore. The list of dependencies is a little different like the one in the code and probably that affects my expander is not "ignored". Current list of plugins:

new StoreQueryExpanderPlugin(),
new LocalizedQueryExpanderPlugin(),
new ProductPriceQueryExpanderPlugin(),
new SortedQueryExpanderPlugin(),
new SortedCategoryQueryExpanderPlugin(CategoryFacetConfigTransferBuilderPlugin::PARAMETER_NAME),
new AttributeCartBasedBoostingQueryExpanderPlugin(),
new PaginatedQueryExpanderPlugin(),
new SpellingSuggestionQueryExpanderPlugin(),
new IsActiveQueryExpanderPlugin(),
new IsActiveInDateRangeQueryExpanderPlugin(),
new CustomerCatalogProductListQueryExpanderPlugin(),
new MerchantReferenceQueryExpanderPlugin(),

/**
 * FacetQueryExpanderPlugin needs to be after other query expanders which filters down the results.
 */
new FacetQueryExpanderPlugin(),

I've tried changing the order but didn't help.

Edit: it seems SortedCategoryQueryExpanderPlugin is responsible for that. Commenting that it will solve the issue. But it's probably not the correct approach, right?

Welcome!

It looks like you're new here. Sign in or register to get started.

Comments

Welcome!

It looks like you're new here. Sign in or register to get started.