Skip to content

CompletionSuggester incorrectly includes prefix and regex properties #7454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stevejgordon opened this issue Mar 23, 2023 · 0 comments · Fixed by #7456
Closed

CompletionSuggester incorrectly includes prefix and regex properties #7454

stevejgordon opened this issue Mar 23, 2023 · 0 comments · Fixed by #7456
Labels
8.x Relates to a 8.x client version
Milestone

Comments

@stevejgordon
Copy link
Contributor

Issue broken out from #7390

Usage of the Prefix property at CompletionSuggester level leads to an error -> [9:9] [completion] unknown field [prefix]

Not working example:

new CompletionSuggester
{
    Field = "myfield", 
    Size = 20, 
    Prefix = "Act",
    SkipDuplicates = true,
}

Working example:

var suggester = FieldSuggester.Completion(new CompletionSuggester
{
    Field = "myfield", 
    Size = 20, 
    SkipDuplicates = true,
});
suggester.Prefix = "Act";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.x Relates to a 8.x client version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant