mirror of
				https://github.com/spring-projects/spring-data-elasticsearch.git
				synced 2025-10-31 14:48:56 +00:00 
			
		
		
		
	Documentation for bulk errors.
Original Pull Request #1982 Closes #1981
This commit is contained in:
		
							parent
							
								
									bbee64c8a4
								
							
						
					
					
						commit
						5717d6ee57
					
				| @ -164,6 +164,7 @@ public interface DocumentOperations { | |||||||
| 	 * @param queries the queries to execute in bulk | 	 * @param queries the queries to execute in bulk | ||||||
| 	 * @param clazz the entity class | 	 * @param clazz the entity class | ||||||
| 	 * @return the information about the indexed objects | 	 * @return the information about the indexed objects | ||||||
|  | 	 * @throws org.springframework.data.elasticsearch.BulkFailureException with information about the failed operation | ||||||
| 	 * @since 4.1 | 	 * @since 4.1 | ||||||
| 	 */ | 	 */ | ||||||
| 	default List<IndexedObjectInformation> bulkIndex(List<IndexQuery> queries, Class<?> clazz) { | 	default List<IndexedObjectInformation> bulkIndex(List<IndexQuery> queries, Class<?> clazz) { | ||||||
| @ -175,6 +176,7 @@ public interface DocumentOperations { | |||||||
| 	 * | 	 * | ||||||
| 	 * @param queries the queries to execute in bulk | 	 * @param queries the queries to execute in bulk | ||||||
| 	 * @return the information about of the indexed objects | 	 * @return the information about of the indexed objects | ||||||
|  | 	 * @throws org.springframework.data.elasticsearch.BulkFailureException with information about the failed operation | ||||||
| 	 */ | 	 */ | ||||||
| 	default List<IndexedObjectInformation> bulkIndex(List<IndexQuery> queries, IndexCoordinates index) { | 	default List<IndexedObjectInformation> bulkIndex(List<IndexQuery> queries, IndexCoordinates index) { | ||||||
| 		return bulkIndex(queries, BulkOptions.defaultOptions(), index); | 		return bulkIndex(queries, BulkOptions.defaultOptions(), index); | ||||||
| @ -187,6 +189,7 @@ public interface DocumentOperations { | |||||||
| 	 * @param bulkOptions options to be added to the bulk request | 	 * @param bulkOptions options to be added to the bulk request | ||||||
| 	 * @param clazz the entity class | 	 * @param clazz the entity class | ||||||
| 	 * @return the information about of the indexed objects | 	 * @return the information about of the indexed objects | ||||||
|  | 	 * @throws org.springframework.data.elasticsearch.BulkFailureException with information about the failed operation | ||||||
| 	 * @since 4.1 | 	 * @since 4.1 | ||||||
| 	 */ | 	 */ | ||||||
| 	List<IndexedObjectInformation> bulkIndex(List<IndexQuery> queries, BulkOptions bulkOptions, Class<?> clazz); | 	List<IndexedObjectInformation> bulkIndex(List<IndexQuery> queries, BulkOptions bulkOptions, Class<?> clazz); | ||||||
| @ -197,6 +200,7 @@ public interface DocumentOperations { | |||||||
| 	 * @param queries the queries to execute in bulk | 	 * @param queries the queries to execute in bulk | ||||||
| 	 * @param bulkOptions options to be added to the bulk request | 	 * @param bulkOptions options to be added to the bulk request | ||||||
| 	 * @return the information about of the indexed objects | 	 * @return the information about of the indexed objects | ||||||
|  | 	 * @throws org.springframework.data.elasticsearch.BulkFailureException with information about the failed operation | ||||||
| 	 */ | 	 */ | ||||||
| 	List<IndexedObjectInformation> bulkIndex(List<IndexQuery> queries, BulkOptions bulkOptions, IndexCoordinates index); | 	List<IndexedObjectInformation> bulkIndex(List<IndexQuery> queries, BulkOptions bulkOptions, IndexCoordinates index); | ||||||
| 
 | 
 | ||||||
| @ -204,6 +208,7 @@ public interface DocumentOperations { | |||||||
| 	 * Bulk update all objects. Will do update. | 	 * Bulk update all objects. Will do update. | ||||||
| 	 * | 	 * | ||||||
| 	 * @param queries the queries to execute in bulk | 	 * @param queries the queries to execute in bulk | ||||||
|  | 	 * @throws org.springframework.data.elasticsearch.BulkFailureException with information about the failed operation | ||||||
| 	 */ | 	 */ | ||||||
| 	default void bulkUpdate(List<UpdateQuery> queries, IndexCoordinates index) { | 	default void bulkUpdate(List<UpdateQuery> queries, IndexCoordinates index) { | ||||||
| 		bulkUpdate(queries, BulkOptions.defaultOptions(), index); | 		bulkUpdate(queries, BulkOptions.defaultOptions(), index); | ||||||
| @ -214,6 +219,7 @@ public interface DocumentOperations { | |||||||
| 	 * | 	 * | ||||||
| 	 * @param clazz the entity class | 	 * @param clazz the entity class | ||||||
| 	 * @param queries the queries to execute in bulk | 	 * @param queries the queries to execute in bulk | ||||||
|  | 	 * @throws org.springframework.data.elasticsearch.BulkFailureException with information about the failed operation | ||||||
| 	 * @since 4.1 | 	 * @since 4.1 | ||||||
| 	 */ | 	 */ | ||||||
| 	void bulkUpdate(List<UpdateQuery> queries, Class<?> clazz); | 	void bulkUpdate(List<UpdateQuery> queries, Class<?> clazz); | ||||||
| @ -223,6 +229,7 @@ public interface DocumentOperations { | |||||||
| 	 * | 	 * | ||||||
| 	 * @param queries the queries to execute in bulk | 	 * @param queries the queries to execute in bulk | ||||||
| 	 * @param bulkOptions options to be added to the bulk request | 	 * @param bulkOptions options to be added to the bulk request | ||||||
|  | 	 * @throws org.springframework.data.elasticsearch.BulkFailureException with information about the failed operation | ||||||
| 	 */ | 	 */ | ||||||
| 	void bulkUpdate(List<UpdateQuery> queries, BulkOptions bulkOptions, IndexCoordinates index); | 	void bulkUpdate(List<UpdateQuery> queries, BulkOptions bulkOptions, IndexCoordinates index); | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -106,7 +106,8 @@ public interface ReactiveDocumentOperations { | |||||||
| 
 | 
 | ||||||
| 	/** | 	/** | ||||||
| 	 * Index entities in the given {@literal index}. If the {@literal index} is {@literal null} or empty the index name | 	 * Index entities in the given {@literal index}. If the {@literal index} is {@literal null} or empty the index name | ||||||
| 	 * provided via entity metadata is used. | 	 * provided via entity metadata is used. On errors returns with | ||||||
|  | 	 * {@link org.springframework.data.elasticsearch.BulkFailureException} with information about the failed operation | ||||||
| 	 * | 	 * | ||||||
| 	 * @param entities must not be {@literal null}. | 	 * @param entities must not be {@literal null}. | ||||||
| 	 * @param index the target index, must not be {@literal null} | 	 * @param index the target index, must not be {@literal null} | ||||||
| @ -168,7 +169,8 @@ public interface ReactiveDocumentOperations { | |||||||
| 	<T> Flux<MultiGetItem<T>> multiGet(Query query, Class<T> clazz, IndexCoordinates index); | 	<T> Flux<MultiGetItem<T>> multiGet(Query query, Class<T> clazz, IndexCoordinates index); | ||||||
| 
 | 
 | ||||||
| 	/** | 	/** | ||||||
| 	 * Bulk update all objects. Will do update. | 	 * Bulk update all objects. Will do update. On errors returns with | ||||||
|  | 	 * {@link org.springframework.data.elasticsearch.BulkFailureException} with information about the failed operation | ||||||
| 	 * | 	 * | ||||||
| 	 * @param queries the queries to execute in bulk | 	 * @param queries the queries to execute in bulk | ||||||
| 	 * @since 4.0 | 	 * @since 4.0 | ||||||
| @ -182,6 +184,7 @@ public interface ReactiveDocumentOperations { | |||||||
| 	 * | 	 * | ||||||
| 	 * @param queries the queries to execute in bulk | 	 * @param queries the queries to execute in bulk | ||||||
| 	 * @param bulkOptions options to be added to the bulk request | 	 * @param bulkOptions options to be added to the bulk request | ||||||
|  | 	 * @throws org.springframework.data.elasticsearch.BulkFailureException with information about the failed operation | ||||||
| 	 * @since 4.0 | 	 * @since 4.0 | ||||||
| 	 */ | 	 */ | ||||||
| 	Mono<Void> bulkUpdate(List<UpdateQuery> queries, BulkOptions bulkOptions, IndexCoordinates index); | 	Mono<Void> bulkUpdate(List<UpdateQuery> queries, BulkOptions bulkOptions, IndexCoordinates index); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user