-
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
not able to use SKU in search #361
Comments
@afoucret: first of all thank you for the fast reply! But after trying branch 2.4.x of the module (which includes PR #300, our fork was based on commit 09519ab) on our local Magento 2 environment, we were still not able to get the SKU based search working. When executing a direct fuzzy query on the Elasticsearch node the expected results are returned, but for some or other reason the module still is not. An example of a SKU that we are using to test the frontend / module search with: But maybe we are missing some kind of required configuration to get the SKU search working? Or did we try the 2.4.x branch too soon / are we missing some other changes? |
patch the analyzers.xml
and then
and then change the sku field in indices from whitespace to reference: |
@southerncomputer: just took the time to test the patch you proposed and it did fix our SKU search, thank you for the quick and valid response! In case others would like to apply the same patch, here is the commit (which is compatible with the current 2.4.x branch of the project): |
A quick update on this - looks like we are still having some issues on the exact SKU search queries. After some further testing, we are experiencing the very same issue (some SKU's do give valid results, while others end up returning strange matches). The commit I created before does not address the SKU search problem completely. Maybe someone else might have a closing solution or an upcoming release fixing the issue could be confirmed? |
In case others might stumble upon this ticket - duplicate and newer issue is #412. |
@southerncomputer your solution works, but it searches only by full SKU, is it possible to make it work like: "FF-32" and it'll find products with SKU: "FF-32123", "FF-32435", "GBFF-32123"? |
@madonzy I am facing the same issue. when we search with the ISD-TN450 it is returning the correct results i.e 3 products but when we search with the ISD-TN45 it is not returning any result. We have checked the demo at http://demo.magento-elastic-suite.io/ and search with the keyword WT09 it is returning the exact result but when we search with the keyword WT0 it is not showing any result. but the product exists and showing on the website. Please suggest if we are missing something in our configuration. |
I want to use SKU attribute in search so user can search through single SKU.
The text was updated successfully, but these errors were encountered: