Ricardo Mello7 articles
Table of Contents One search might not be enoughMerging the best of both worldsPrerequisitesThe vector searchThe full-text searchImplementing the full-text indexExecuting a basic text queryImproving the experience with fuzzy searchRefining results with score boostingCombining forces with hybrid searchThe $rankFusionHow to …
-
Modeling Relationships With Hibernate ORM and MongoDB
Table of Contents PrerequisitesOne-to-many relationshipApproach 1: Embedding reviews inside booksApproach 2: Moving reviews to a separate collectionApproach 3: Bringing back recent reviews (Subset Pattern)Implementing the Subset PatternTesting the featureWrapping up In the previous article—Getting Started With Hibernate ORM and MongoDB—we …
-
Getting Started With Hibernate ORM and MongoDB
Table of Contents How MongoDB fits inPrerequisitesTag your Atlas clusterProject overviewSetting up the projectConfigure HibernateThe Book entityCreating the SessionFactoryImplementing the Book serviceRunning the applicationCurrent limitations (Public Preview)Wrapping up For years, Hibernate ORM has been one of the most popular frameworks …
-
Beyond Keywords: Optimizing Vector Search With Filters and Caching (Part 2)
Table of Contents Adding filters: From story to codeFirst try: Add a post-filter in MovieServiceSecond try: Use a pre-filterRefining the search with extra filtersApplying toCriteria() in the searchReducing embedding costs with cachingStrategy with @CacheableA minimal frontendStep 1: HTMLStep 2: JavaScriptStep …
-
Beyond Keywords: Implementing Semantic Search in Java With Spring Data (Part 1)
Table of Contents The magic behind vector searchPrerequisitesEmbeddings with Voyage AIPreparing the datasetMongoDB Atlas Vector Search (index and retrieval)Building the movie search appConfiguring the applicationThe document modelWire the request DTOCommunicating with Voyage AIThe EmbeddingServiceQuerying with Spring Data Vector Search operationThe …
-
Queryable Encryption With Spring Data MongoDB: How to Query Encrypted Fields
Table of Contents Why Queryable Encryption?A quick look at Spring Data MongoDBUse case: HR system with encrypted fieldsSetting up the projectConfiguring dependencies and propertiesAdding mongodb-cryptApplication.yml configurationAccessing properties in the codeBuilding the application layersThe domain modelThe repositoryThe serviceThe controllerSetting up encryptionConfiguring …
-
Why Mirroring Production in Dev Helps You Avoid Costly Mistakes
Table of Contents The setup: A realistic aggregation scenarioThe application behind the testTesting on M0: The hidden riskTaking it to production: Same query, different outcomeReal-time metrics: Detecting the bottleneckQuery insights: The detective toolDon’t guess, let Performance Advisor show the wayResilience …