Skip to content

feat: add support for MongoDB application name configuration and upda…#378

Merged
otaviojava merged 1 commit into
1.1.xfrom
mongodb-bpb-1-1
May 23, 2026
Merged

feat: add support for MongoDB application name configuration and upda…#378
otaviojava merged 1 commit into
1.1.xfrom
mongodb-bpb-1-1

Conversation

@otaviojava
Copy link
Copy Markdown
Contributor

This pull request introduces several improvements and updates to the MongoDB and Solr modules. The most significant changes are the addition of support for the MongoDB application.name property, refactoring and modernization of the Solr client code to use the new HttpJdkSolrClient, and an upgrade of the SolrJ library dependency. These changes enhance configuration flexibility and ensure compatibility with newer Solr versions.

MongoDB enhancements:

  • Added support for the jnosql.mongodb.application.name property, allowing users to define the logical name of the application connecting to MongoDB. This is reflected in both the configuration enum and the documentation. [1] [2]
  • Refactored MongoDBDocumentConfiguration to utilize the new application.name property when building MongoClientSettings, improving configurability and code clarity.

Solr client modernization and compatibility:

  • Replaced the deprecated Http2SolrClient with the new HttpJdkSolrClient throughout the Solr communication and manager classes, aligning with SolrJ 10.x best practices. [1] [2] [3] [4] [5]
  • Upgraded the SolrJ dependency from version 9.9.0 to 10.0.0 in the Maven configuration, ensuring compatibility with the latest Solr features and bug fixes.

Solr query improvements:

  • Updated sorting logic in Solr queries to use a functional approach for mapping Sort objects to SortClause, improving readability and maintainability. [1] [2]

Other improvements:

  • Minor code cleanup and improvements, such as using final for immutable fields in tests.
  • Removed unused imports and improved JavaDoc comments for clarity. [1] [2] [3]

These updates collectively modernize the codebase, improve configurability, and ensure forward compatibility with the latest database drivers.

…te Solr client to HttpJdkSolrClient

- Add `jnosql.mongodb.application.name` configuration option for MongoDB connections
- Refactor MongoDBDocumentConfiguration to support application name and improve settings handling
- Update Solr integration to use `HttpJdkSolrClient` instead of deprecated clients
- Bump SolrJ dependency to 10.0.0
- Update documentation for new MongoDB configuration option
@otaviojava otaviojava merged commit f3e3b20 into 1.1.x May 23, 2026
3 of 4 checks passed
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.

1 participant