MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / get_text_score

Method get_text_score

mongoengine/base/document.py:320–330  ·  view source on GitHub ↗

Get text score from text query

(self)

Source from the content-addressed store, hash-verified

318 pass
319
320 def get_text_score(self):
321 """
322 Get text score from text query
323 """
324
325 if "_text_score" not in self._data:
326 raise InvalidDocumentError(
327 "This document is not originally built from a text query (or text_score was not set on search_text() call)"
328 )
329
330 return self._data["_text_score"]
331
332 def to_mongo(self, use_db_field=True, fields=None):
333 """

Callers 1

test_search_textMethod · 0.80

Calls 1

Tested by 1

test_search_textMethod · 0.64