Index product attributes
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Index product attributes
Hi Aimeos team,
in 2018.x, all product attributes were indexed into mshop_index_text, so that products could be searched via their attributes. In 2021.x, I can't make this work.
What do I need to configure to search products by their attributes with the default search function?
in 2018.x, all product attributes were indexed into mshop_index_text, so that products could be searched via their attributes. In 2021.x, I can't make this work.
What do I need to configure to search products by their attributes with the default search function?
Re: Index product attributes
In 2018.x this consisted of a lot of ugly code and had been removed after a rewrite. Up to now, no one besides you has asked for that again
In the new source it's rather easy to add that again:
https://github.com/aimeos/aimeos-core/b ... #L728-L739
You can add something like this:
If you create a PR, there should be no problem to add that feature again into the core.
In the new source it's rather easy to add that again:
https://github.com/aimeos/aimeos-core/b ... #L728-L739
You can add something like this:
Code: Select all
foreach( $product->getRefItems( 'attribute' ) as $attrItem ) {
$texts[$langId]['content'][] = $attrItem->getName();
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Index product attributes
Thanks for the reply, I already solved it exactly this way (and added some configuration to prevent hidden attributes by default).
I'll be happy to make a PR!
I'll be happy to make a PR!