Skip to content

Commit 13de7d8

Browse files
committed
Set manageDocumentIds default to true for backward compatibility
The manageDocumentIds flag was initially set to false, which would break existing users who rely on explicit document ID management. This change sets the default to true to preserve the current behavior for all existing OpenSearch users. AWS OpenSearch Serverless users can explicitly opt-in by setting manageDocumentIds(false) when they need auto-generated IDs due to the platform's restrictions on custom document IDs. This ensures backward compatibility while still providing the flexibility needed for AWS Serverless environments. Related: gh-3818 Signed-off-by: sanghun <vitash1215@gmail.com>
1 parent a4acdec commit 13de7d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vector-stores/spring-ai-opensearch-store/src/main/java/org/springframework/ai/vectorstore/opensearch/OpenSearchVectorStore.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
* @author Christian Tzolov
148148
* @author Thomas Vitale
149149
* @author inpink
150+
* @author Sanghun Lee
150151
* @since 1.0.0
151152
*/
152153
public class OpenSearchVectorStore extends AbstractObservationVectorStore implements InitializingBean {

0 commit comments

Comments
 (0)