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

Changed x-use-read-transporter for searchSingleIndex #3699

Conversation

aykutersoy
Copy link
Contributor

@aykutersoy aykutersoy commented Sep 12, 2024

Changed x-use-read-transporter for searchSingleIndex, the reason behind that is to be able to pass body when querying single index with filters

Closes #3698

🧭 What and Why

TBH I'm not 100% this the correct approach to the issue I've created (#3698) but it does the job when I set the filters in body attribute which was the case before v4

$searchResponse = $client->searchSingleIndex(
    indexName: $indexName,
    searchParams: ['query' => ''],
    requestOptions: [
        'body' => [
            'filters' => 'value=1',
        ],
    ],
);

🎟 JIRA Ticket:

Changes included:

  • List changes

🧪 Test

the reason behind that is to be able to pass body when querying single index with filters
@aykutersoy aykutersoy requested a review from a team as a code owner September 12, 2024 15:26
@aykutersoy aykutersoy closed this Sep 12, 2024
@aykutersoy
Copy link
Contributor Author

#3698 (comment)

Above comment solves the problem I had

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

Successfully merging this pull request may close these issues.

[bug]: v4+ Filters don't work using SearchClient::searchSingleIndex()
1 participant