Skip to content

Java: Fixes searchAsync does not limit the number of results#2599

Merged
dsgrieve merged 1 commit intomicrosoft:experimental-javafrom
kshitijcode:experimental-java
Aug 28, 2023
Merged

Java: Fixes searchAsync does not limit the number of results#2599
dsgrieve merged 1 commit intomicrosoft:experimental-javafrom
kshitijcode:experimental-java

Conversation

@kshitijcode
Copy link
Copy Markdown
Contributor

@kshitijcode kshitijcode commented Aug 28, 2023

Motivation and Context

Fixes #2572

Description

As per the ACS documentation/sourcode setTop() is the right method to control the return of number of search results.

https://github.com/Azure/azure-sdk-for-java/blob/fa886839e05fa40fbd2b10100434af0e2a809059/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/SearchOptions.java#L206

Contribution Checklist

@kshitijcode kshitijcode requested a review from a team as a code owner August 28, 2023 11:02
@shawncal shawncal added the java Issue or PR regarding Java code label Aug 28, 2023
@shawncal shawncal changed the title Fixes searchAsync does not limit the number of results Java: Fixes searchAsync does not limit the number of results Aug 28, 2023
@dsgrieve dsgrieve merged commit e245eba into microsoft:experimental-java Aug 28, 2023
johnoliver pushed a commit to johnoliver/semantic-kernel that referenced this pull request Jun 5, 2024
…ft#2599)

### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Fixes microsoft#2572

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

As per the ACS documentation/sourcode setTop() is the right method to
control the return of number of search results.


https://github.com/Azure/azure-sdk-for-java/blob/fa886839e05fa40fbd2b10100434af0e2a809059/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/SearchOptions.java#L206

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
johnoliver pushed a commit to johnoliver/semantic-kernel that referenced this pull request Jun 5, 2024
…ft#2599)

### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Fixes microsoft#2572

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

As per the ACS documentation/sourcode setTop() is the right method to
control the return of number of search results.


https://github.com/Azure/azure-sdk-for-java/blob/fa886839e05fa40fbd2b10100434af0e2a809059/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/SearchOptions.java#L206

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

java Issue or PR regarding Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants