C: https://cloud.google.com/appengine/docs/python/search/
The search API provides a model for indexing documents that contain structured data. You can search for an index, and organize and submit search results. The API supports full text matching across string fields. Documents and indexes are stored in a separate permanent storage optimized for search operations. The search API can index any number of documents.
Search execution:
index.search("rose water")
Object Indexing:
from datetime import datetime from google.appengine.api import search my_document = search.Document( fields=[ search.TextField(name='customer', value='Joe Jackson'), search.HtmlField(name='comment', value='this is <em>marked up</em> text'), search.NumberField(name='number_of_visits', value=7), search.DateField(name='last_visit', value=datetime.now()), search.DateField(name='birthday', value=datetime(year=1960, month=6, day=19)), search.GeoField(name='home_location', value=search.GeoPoint(37.619, -122.37)) ])
source share