How do you implement full-text search in Elasticsearch?
Build full-text search with Elasticsearch and Spring Data Elasticsearch: analyzers, mappings, indexing and multi_match queries with filters.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
Build full-text search with Elasticsearch and Spring Data Elasticsearch: analyzers, mappings, indexing and multi_match queries with filters.
@Document marks a class as a persistent document in Spring Data. See how it maps to an Elasticsearch index or a MongoDB collection, with examples.
Annotate an entity with @Document and let Spring Data create the index, or call indexOps explicitly. Includes Boot 3 properties, mappings and reindexing.
ElasticsearchRestTemplate wrapped the High Level REST Client for indexing and searching. Learn how it works, why it is deprecated and how to migrate.
Integrate Spring Boot with Elasticsearch using Spring Data Elasticsearch: configuration, document mapping, repositories, full-text queries with NativeQuery and testing.
SimpleRabbitListenerContainerFactory builds the containers behind @RabbitListener methods. See what it configures and how to customise it in Spring Boot.
Configure bounded retries, a dead-letter exchange and a DLQ for RabbitMQ in Spring Boot, plus TTL-based delayed retries.
Jackson2JsonMessageConverter sends and receives RabbitMQ messages as JSON. Learn setup in Spring Boot, type mapping and security settings.
Replace Java serialization with a JSON MessageConverter in Spring AMQP, control type resolution and handle conversion failures with a dead-letter queue.
MessageListener is the Spring AMQP interface whose onMessage method consumes RabbitMQ messages. Use it with a listener container or let @RabbitListener wrap it.
Learn how RabbitMQ acknowledgments work in the Java client: manual acks, nack and reject, prefetch, dead lettering and publisher confirms.
RabbitTemplate is Spring AMQP's helper for publishing messages to RabbitMQ, converting objects, receiving replies and handling confirms.
Build a RabbitMQ producer in Spring Boot with RabbitTemplate, JSON conversion, a REST endpoint, and publisher confirms so failed publishes are noticed.
Set up RabbitMQ in Spring Boot with queues, exchanges, JSON messages, @RabbitListener consumers, retries and a dead-letter queue.
Schema Registry gives Kafka a shared, versioned message contract. Learn how schema IDs, compatibility modes and the REST API keep producers and consumers in sync.
Implement Kafka schema validation in Spring Boot with Avro and a schema registry, plus dead-letter handling and compatibility checks.
ConcurrentKafkaListenerContainerFactory creates the containers behind @KafkaListener and sets concurrency, acks and error handling. See a working configuration.
Set concurrency on @KafkaListener or the container factory to run several consumer threads. Learn how it maps to partitions, ordering and offsets.
@Transactional makes Spring wrap a method in a transaction that commits on success and rolls back on failure. Learn its attributes and the pitfalls.
Set a unique transactional.id, call initTransactions, then wrap sends in begin and commit. Covers fencing, read_committed consumers and Spring Kafka.