Skip to content

Magento 2.3.2 OS Elasticsearch 6.8 returning suggestions from MySQL search_query #25534

Closed
@rf-magma

Description

@rf-magma

Preconditions (*)

  1. installing and configuring Elasticsearch 6.8.2 in a Magento 2.3.2(or 2.3-develop) Open Source installation as per devdocs (reindexing and cache:clean ok)
  2. checking (with Kibana) that the query (GET _search) is sent to Elastic (activating slow log threshold to 0 and checking the queries get passed to Elastic)
  3. entering word/s in Magento2 search bar and hitting enter generates logs in Elasticsearch and return expected results (same as firing the query "GET _search" in Kibana).

Steps to reproduce (*)

  1. In magento 2.3 search bar entering a word (without hitting enter) and waiting for autocomplete to return results (search suggestions) in a dropdown list

Expected result (*)

  1. Query sent to Elasticsearch in order to retrieve "search suggestions"
  2. Query logged in Elasticsearch logs
  3. Search suggestions retrieved from Elastic

Actual result (*)

  1. Magento 2.3 queries instead MySQL search_query table and returns those search suggestions (words not present in whole elasticsearch indexes)
  2. Queries not logged in elastic logs proving query is made to mysql search_query table

Notes

mysql search_query table contains many words not present in whole Magento because registers search made by previous visitors

thanks,
romeo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ElasticsearchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.Progress: doneReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.stale issue

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions