Added elasticsearch call when the full text search is triggered form … #38630
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Fulltext search in the Magento backend to use elasticsearch to find matches using search strategies similar to the frontend
Description (*)
The changes in this PR make the full text search from the backend using the configured elasticsearch engine in the same way as the frontend. The search term is submitted to the search engine so that it gets compared with product name field and product sku field. After the search returns some products match, the product grid filters do work like before.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Test 1: backward compliance test
Using the full text input in the backend catalog product grid, we can find products that have the search term in their product name
Test 2: backward compliance test
Using the full text input in the backend catalog product grid, we can find products for which their skus start with the search term
Test 3: this is a new test specific to the changes added
Using the full text input in the backend catalog product grid, we can find products for which their product name contain either of the search term words
Test 4: this is a new test specific to the changes added
Using the filters in the product grid form, the results are refined when using search term with some filters value (eg: gender..)
Questions or comments
It is likely that the file
app/code/Magento/CatalogSearch/etc/search_request.xml
will need to be tuned to improved the search usabilityContribution checklist (*)