[GMG-Devel] [PATCH 43/83] Add field for storing search results.

Alon Levy alon at pobox.com
Tue Feb 25 14:58:26 EST 2014


From: Praveen Kumar <praveen97uma at gmail.com>

---
 mediagoblin/plugins/search/schemas.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mediagoblin/plugins/search/schemas.py b/mediagoblin/plugins/search/schemas.py
index 7963504..a5358c7 100644
--- a/mediagoblin/plugins/search/schemas.py
+++ b/mediagoblin/plugins/search/schemas.py
@@ -26,6 +26,8 @@ class MediaEntryIndexSchema(SchemaClass):
     media_type = TEXT
     license = TEXT
 
+    search_result = TEXT(stored=True)
+
 class MediaTagIndexSchema(SchemaClass):
     """
     Represents the schema of the search index corresponding to
@@ -36,3 +38,5 @@ class MediaTagIndexSchema(SchemaClass):
     id_stored = ID(stored=True)
     
     name = TEXT
+
+    search_result = TEXT(stored=True)
-- 
1.8.5.3



More information about the devel mailing list