From 6d991586fdefc4a050ff0b6dd6b18371e2240376 Mon Sep 17 00:00:00 2001 From: optik Date: Fri, 24 Jul 2015 15:26:10 +0200 Subject: [PATCH] Bad property name for indices description in docs The correct name for MongoDB index definition property is weights not weight. Using "weight" will cause "Index with name ... already exists with different options" --- docs/guide/text-indexes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/text-indexes.rst b/docs/guide/text-indexes.rst index 695159c6..725ad369 100644 --- a/docs/guide/text-indexes.rst +++ b/docs/guide/text-indexes.rst @@ -17,7 +17,7 @@ Use the *$* prefix to set a text index, Look the declaration:: meta = {'indexes': [ {'fields': ['$title', "$content"], 'default_language': 'english', - 'weight': {'title': 10, 'content': 2} + 'weights': {'title': 10, 'content': 2} } ]}