Skip to content
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

[FEATURE] sltr query #890

Open
SamuelCox opened this issue Jan 13, 2025 · 2 comments
Open

[FEATURE] sltr query #890

SamuelCox opened this issue Jan 13, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@SamuelCox
Copy link
Contributor

Is your feature request related to a problem?

The sltr query does not appear to be available in the sdk, am I missing something?


var rescoreDescriptor = new RescoreDescriptor<Product>();
rescoreDescriptor.WindowSize(200).RescoreQuery(q => q.Query(rs => rs.))
rescoringDescriptor.Rescore((s) => rescoreDescriptor);            
descriptor.Rescore(s => rescoringDescriptor);

https://docs.aws.amazon.com/opensearch-service/latest/developerguide/learning-to-rank.html

What solution would you like?


var rescoreDescriptor = new RescoreDescriptor<Product>();
rescoreDescriptor.WindowSize(200).RescoreQuery(q => q.Query(rs => rs.Sltr()))
rescoringDescriptor.Rescore((s) => rescoreDescriptor);            
descriptor.Rescore(s => rescoringDescriptor);

What alternatives have you considered?

I guess we could use Raw()? I couldn't find any reference to sltr in this github so not sure if I'm missing something.

Do you have any additional context?

Add any other context or screenshots about the feature request here.

@SamuelCox SamuelCox added enhancement New feature or request untriaged labels Jan 13, 2025
@Xtansia Xtansia removed the untriaged label Jan 13, 2025
@Xtansia
Copy link
Collaborator

Xtansia commented Jan 13, 2025

Hi @SamuelCox, You're correct that the client doesn't currently have any support for the learning-to-rank plugin. Any contributions to add support for any portions of the plugin would be greatly welcomed if you're interested in doing so.

Otherwise yes some combination of the .Raw() query or Raw HTTP methods would be the workaround.

@SamuelCox
Copy link
Contributor Author

I'll see if I can find the time sometime, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants