Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Summary
This pull request introduces a new stemming feature to the Typesense API client. The changes include adding new classes for handling stemming dictionaries, updating the
Client
class to include stemming functionality, and adding tests to ensure the new functionality works correctly.New Stemming Feature:
src/main/java/org/typesense/api/Client.java
: Added aStemming
member and corresponding methods to theClient
class to support stemming operations. [1] [2] [3]src/main/java/org/typesense/api/Stemming.java
: Introduced a newStemming
class that manages stemming dictionaries and individual stemming dictionary instances.src/main/java/org/typesense/api/StemmingDictionaries.java
: Added aStemmingDictionaries
class to handle operations such as upserting and retrieving stemming dictionaries.src/main/java/org/typesense/api/StemmingDictionariesRetrieveSchema.java
: Created a schema class for retrieving stemming dictionaries.src/main/java/org/typesense/api/StemmingDictionary.java
: Added aStemmingDictionary
class to handle individual stemming dictionary operations.Testing:
src/test/java/org/typesense/api/Helper.java
: Updated theHelper
class to include methods for creating and tearing down stemming dictionaries for testing purposes. [1] [2]src/test/java/org/typesense/api/StemmingTest.java
: Added a new test classStemmingTest
to verify the functionality of stemming dictionary operations, including upserting and retrieving dictionaries.- AddStemming
class to manage dictionary operationsStemmingDictionaries
to handle bulk dictionary operationsStemmingDictionary
to manage individual dictionariesStemmingDictionariesRetrieveSchema
for API responsesPR Checklist
[x] I have read and signed the Contributor License Agreement.