Skip to content

Error response for multi query request including fuzzy search #507

@Nick-S-2018

Description

@Nick-S-2018

Bug Description:

curl localhost:9308/cli -d "CREATE TABLE test(f text) min_infix_len='2' ''

curl localhost:9308/cli -d "SELECT f FROM test WHERE MATCH('a') OPTION fuzzy=1;show meta;"
ERROR: P01: syntax error, unexpected ';' near ';show meta;SHOW META'

It looks that Fuzzy plugin generates the incorrect query when processing such request:

SELECT f FROM test WHERE MATCH('(a^50)') option idf='plain,tfidf_normalized', ;show meta;SHOW META

Manticore Search Version:

Manticore 7.4.7 2619d58d9@25031205 dev

Operating System Version:

Ubuntu 22.04

Have you tried the latest development version?

Yes

Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

  • Implementation completed
  • Tests developed
  • Documentation updated
  • Documentation reviewed
  • Changelog updated

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions