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

[BUG] Search Request preference cannot be set to _primary #819

Open
ravi4theja opened this issue Jan 23, 2024 · 1 comment
Open

[BUG] Search Request preference cannot be set to _primary #819

ravi4theja opened this issue Jan 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ravi4theja
Copy link

What is the bug?

Supplying _primary to search request builder's preference is throwing illegal argument exception.

How can one reproduce the bug?

Create a search request using SearchRequest.Builder and set the preference option to _primary

What is the expected behavior?

It should take in the _primary as a preference according to open search docs

What is your host/environment?

MacOS Sonoma 14.2.1

Do you have any screenshots?

Screenshot 2024-01-23 at 12 55 49 AM

Do you have any additional context?

I was wondering is there are any enums I can use instead of passing in a _primary string to the search request preference.

@ravi4theja ravi4theja added bug Something isn't working untriaged labels Jan 23, 2024
@dblock dblock removed the untriaged label Feb 5, 2024
@dblock
Copy link
Member

dblock commented Feb 5, 2024

Is this a server-side error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants