Skip to content

Fuzzy=1 cannot be used with ranker or field_weights option #3151

Closed
@cappadaan

Description

@cappadaan

Bug Description:

Fuzzy icw ranker of field_weights options fails with error.
Is this by design? There is nothing in the documentation about this.

Fails:

SELECT field FROM index WHERE MATCH('word') OPTION cutoff=0, ranker=expr('sum((4lcs+2(min_hit_pos==1)+exact_hit)*user_weight)*1000+bm25'), field_weights = (field=1), fuzzy=1

=> Invalid options in query string, make sure they are separated by commas

Fails:

SELECT field FROM index WHERE MATCH('word') OPTION cutoff=0, field_weights = (field=1), fuzzy=1

=> Invalid options in query string, make sure they are separated by commas

Fails:

SELECT field FROM index WHERE MATCH('word') OPTION cutoff=0, ranker=expr('sum((4lcs+2(min_hit_pos==1)+exact_hit)*user_weight)*1000+bm25'), fuzzy=1

=> Invalid options in query string, make sure they are separated by commas

Succeeds:

SELECT field FROM index WHERE MATCH('word') OPTION cutoff=0, fuzzy=1

Manticore Search Version:

7.4.6

Operating System Version:

AlmaLinux

Have you tried the latest development version?

None

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