Include preliminary support for text indexes

To index a text field, prefix the field name with `$`, as in `$title`.
This commit is contained in:
Clay McClure
2014-06-27 14:48:32 -04:00
parent cfbb283f85
commit 74bd7c3744
5 changed files with 22 additions and 5 deletions
+1
View File
@@ -6,6 +6,7 @@ Changelog
Changes in 0.9.X - DEV
======================
- Added preliminary support for text indexes #680
- Added `elemMatch` operator as well - `match` is too obscure #653
- Added support for progressive JPEG #486 #548
- Allow strings to be used in index creation #675
+2 -1
View File
@@ -459,7 +459,8 @@ by creating a list of index specifications called :attr:`indexes` in the
either be a single field name, a tuple containing multiple field names, or a
dictionary containing a full index definition. A direction may be specified on
fields by prefixing the field name with a **+** (for ascending) or a **-** sign
(for descending). Note that direction only matters on multi-field indexes. ::
(for descending). Note that direction only matters on multi-field indexes.
Text indexes may be specified by prefixing the field name with a **$**. ::
class Page(Document):
title = StringField()