Use 'text' instead of pymongo.TEXT

Change-Id: I6b6ee5b6a80759d127b9ee5b69549ffc616730ba
This commit is contained in:
aviau 2015-08-20 09:45:34 -04:00
parent b5418f6e38
commit ab6207399e

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import pymongo
from surveil.api.handlers import handler
@ -32,9 +30,9 @@ class StatusHandler(handler.Handler):
pass
self.request.mongo_connection.alignak_live.hosts.ensure_index(
[("$**", pymongo.TEXT)]
[("$**", 'text')]
)
self.request.mongo_connection.alignak_live.services.ensure_index(
[("$**", pymongo.TEXT)]
[("$**", 'text')]
)