-
Notifications
You must be signed in to change notification settings - Fork 340
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
Fulltext search is not working #3308
Comments
Hello @haristariqmage4, This is probably due to the "word_delimiter" of the "standard" (text) analyzer which will transform your product names before indexing it. If you can't have "simpler" product names, I would recommend trying to change the configuration of the "word_delimiter" token filter by disabling "split_on_numerics" in the elasticsuite_analysis.xml (through a composer patch or a re-definition of the XML in a custom module) Then for the original issue, a thesaurus entry for associating "D5W" or "d5w" to "Dextrose 5% Water" should to the trick. Regards, |
Hello @haristariqmage4, Indeed, I've just saw
That's ... old :) Or use directly the _analyze endpoint of your Elasticsearch in CLI
(Replace Regards, |
|
Hello @haristariqmage4, So now that your thesaurus is in place, you have two options (that could be combined, actually)
1. reducing the score penalty for products matching a synonym You can change that by reducing (up to 1, ie "no penalty") the setting available at Elasticsuite > Search Relevance > Thesaurus Configuration > Synonyms Configuration > Synonyms Weight Divider The products matching individually "D", "5" and "W" will still be present in the search results list but maybe at a lower place for you to be satisfied. 2. altering the "word_delimiter" token filter in the way I described You probably only need to change the "split_on_numerics" from "true" to "false". You can do that either with a composer patch on that distribution file OR create a custom module in app/code with a local elasticsuite_analysis.xml which will contain just the re-defined word_delimiter token filter. Please be aware that this approach could have adverse side effects, for instance preventing finding products with a "L48B" in their name or their SKU by searching for "L 48 B" for instance. Regards, |
@rbayet |
Also what can be the solution to avoid:
this side effects |
@rbayet ? |
Preconditions
Magento Version : 2.4.0
ElasticSuite Version : 2.1.0
Environment : Developer
Third party modules :
Amasty_Base
Amasty_CronScheduleList
Amasty_Customform
Amasty_InvisibleCaptcha
Amasty_RequestQuote
Amasty_QuoteAttributesManagement
Amasty_RequestAQuoteProSubscriptionPackage
Amasty_QuoteAttributes
Amazon_Core
Amazon_Login
Amazon_Payment
Clarion_CustomerAttribute
Codazon_AjaxCartPro
Codazon_AjaxLayeredNav
Codazon_AjaxLayeredNavPro
Codazon_Core
Codazon_GoogleAmpManager
Codazon_ImproveBundle
Codazon_Lookbookpro
Codazon_MegaMenu
Codazon_OneStepCheckout
Codazon_ProductFilter
Codazon_ThemeOptions
Codazon_QuickShop
Codazon_ShippingCostCalculator
Codazon_Shopbybrandpro
Codazon_Slideshow
Codazon_ProductLabel
Codazon_Utility
Dotdigitalgroup_Email
Dotdigitalgroup_ChatHarrigo_EverCrumbs
Klarna_Core
Klarna_Ordermanagement
Klarna_Onsitemessaging
Klarna_Kp
Klaviyo_Reclaim
MageMe_HidePrice
MageWorx_SearchSuiteAutocomplete
Magefan_Community
Magefan_Blog
Magefan_WysiwygAdvanced
Magemonkeys_CategoryFilter
Magemonkeys_CompanyName
Magemonkeys_Customerinfo
Magemonkeys_FeaturedProduct
Magemonkeys_HideMyOrders
Magemonkeys_Ordermail
Magemonkeys_Product
Magemonkeys_Quote
Magemonkeys_RemoveQuoteCartPrice
Magemonkeys_RepresentativeAttr
Magemonkeys_RestrictCategory
Magemonkeys_WelcomeEmailCc
Mageplaza_Core
Mageplaza_BannerSlider
Mageplaza_BackendReindex
Mageplaza_MassProductActions
Mageplaza_Smtp
Magestat_SplitOrder
OlegKoval_RegenerateUrlRewrites
PayPal_Braintree
PayPal_BraintreeGraphQl
RapideWeb_ProductListTable
Smile_ElasticsuiteCore
Smile_ElasticsuiteCatalog
Smile_ElasticsuiteCatalogGraphQl
Smile_ElasticsuiteCatalogRule
Smile_ElasticsuiteCatalogOptimizer
Smile_ElasticsuiteTracker
Smile_ElasticsuiteThesaurus
Smile_ElasticsuiteSwatches
Smile_ElasticsuiteIndices
Smile_ElasticsuiteAnalytics
Smile_ElasticsuiteVirtualCategory
Temando_ShippingRemover
Ulmod_Ordernotes
Vertex_Tax
Vertex_AddressValidation
WebShopApps_MatrixRate
Yotpo_Yotpo
Zero1_Patches
How do we make results for "dextrose 5% water" show the same as results for "d5w"? Since one is multiple words and the other is technically just one?
How can we make sure that items like Sharps Container 26 1/4 ° 20 w * 14 3/4 D Inch 19 BD Gallon are not included in the search results for 'D5W'?
Expected result
More narrow product search that will only allow for exact terms to be fetched
Searches like 'D5W' should not have results that include hits for 'D' '5' 'W'
Actual result
The text was updated successfully, but these errors were encountered: