Skip to content

Altering searchd.expansion_phrase_limit functionality #3817

@KALLIAK

Description

@KALLIAK

Proposal:

Good day! We’ve encountered an issue with the paid customization related to the functionality: you added an option for the limit searchd.expansion_phrase_limit, which triggers an error when reached.
In our current "workaround" implementation via query preprocessing, we also have such an option. However, in our case, when the limit is reached, the remaining combination variants are simply discarded — meaning the output quality may slightly decrease, but the user does not receive an error. This is important because the user has no way to influence the number of these combinations on their side without altering the original query.
Would it be possible to modify this option so that it behaves in a similar way, or perhaps add an additional option specifying whether to return an error or truncate combinations when the limit is reached?

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
  • OpenAPI YAML updated and issue created to rebuild clients

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions