Questions tagged [gae-search]

The Search API allows your application to perform Google-like searches over structured data. You can search across several different types of data (plain text, HTML, atom, numbers, dates, and geographic points). Searches return a sorted list of matching text, and you can customize the sorting and presentation of results.

The Google App Engine Search API provides a simple model for indexing and searching data, and displaying the results. Search can query any data, as long as that data is described by a document. You structure data in documents using a number of Field classes to describe different type of text the document contains (plain text, HTML, atom, numbers, dates, and geographic points).

After constructing the document, you can use methods of the Index class to add, remove, or list documents in an index, and also to search an index with a query. The API provides a comprehensive query language that supports numeric and text expressions. The API also allows you to specify query options, such as sort order for results, the number of results returned, and a starting cursor position or offset.

You can use field expressions and snippeted fields to control the presentation and content of search results, and you can use cursors to page through each set of results. Field expressions let you specify which fields to return. Snippeted fields in the QueryOptions class allow you to return an abbreviated snippet of a field instead of its full content.

Matching search results are returned to the application in a SearchResults object. This object includes the number of results found, the actual results returned, and an optional cursor object.

For further information see Google's Search API Documentation.

93 questions
11
votes
1 answer

Connecting AppEngine Datastore and Search API

I wonder what the best way is to connect the Datastore and the Search API. What I'm looking for is whenever I create some entity (e.g. a product) that this product will be added to a search index. On update the index should be updated as well, and…
Marcel Overdijk
  • 11,041
  • 17
  • 71
  • 110
9
votes
3 answers

quotas on appengine search api for java

I am testing the new app engine search api for java and I have the following code that tries to add ~3000 documents on an index: List documents = new ArrayList(); for (FacebookAlbum album: user.listAllAlbums()) { …
8
votes
2 answers

sort_options only applied when query_string is not empty?

trying to figure out whether this is a bug or by design. when no query_string is specified for a query, the SearchResults object is NOT sorted by the requested column. for example, here is some logging to show the problem: Results are returned…
HorseloverFat
  • 3,290
  • 5
  • 22
  • 32
7
votes
2 answers

How to delete a search Index itself

Search Index has a method to delete a document. https://cloud.google.com/appengine/docs/standard/python/search/indexclass (Python) https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/search/Index (java) But how to…
aki miyazaki
  • 493
  • 4
  • 11
7
votes
1 answer

How to backup the Google App Engine Full Text Search documents?

First of all, thank you Google for full text search support. How do I backup the Documents that I have stored in the full text search datastore? Can I use appcfg.py download_data?
7
votes
2 answers

Google App Engine - Using Search API Python with list fields

I'm using ndb.Model. The Search API has the following field classes: TextField : plain text HtmlField : HTML formatted text AtomField : a string which is treated as a single token NumberField : a numeric value (either float or…
6
votes
1 answer

Google App Engine Search API

When querying a search index in the Python version of the GAE Search API, what is the best practice for searching for items where documents with words match the title are first returned, and then documents where words match the body? For example…
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
6
votes
3 answers

How can I find the closest document using Google App Engine Search API?

I have approximately 400,000 documents in a GAE Search index. All documents have a location GeoPoint property and are spread over the entire globe. Some documents might be over 4000km away from any other document, others might be bunched within…
Dan
  • 5,013
  • 5
  • 33
  • 59
6
votes
1 answer

How to store lat-lon geolocation point in a document for GAE search?

There where indications in the GoogleIO talk on Search API that we can do searches based on geolocation. I can't find an appropriate field to store location info. How can I store geolocation info in the document so I could issue queries based on…
Janusz Skonieczny
  • 17,642
  • 11
  • 55
  • 63
5
votes
2 answers

How to get all record's id in Search API using GAE

result = search.get_indexes(namespace='', offset=0, limit=999, start_index_name='f35cef2dfb9a8f34e381386ec5a1f7ee', include_start_index=True, fetch_schema=False) but, here not got id/index how to get only id/index of record in Search API ? help !!
Vijay Kumbhani
  • 734
  • 1
  • 6
  • 26
5
votes
1 answer

Using Search API Python - Google App Engine Big Table

I would like to use Search API with an application that is already using a defined model (db.Model). For example, suppose that my model looks like this: class Greeting(db.Model): author = db.StringProperty() content = db.StringProperty() …
gather
  • 51
  • 3
4
votes
1 answer

Appengine Search API search by Date and Time

I'm wondering how to have a millisecond since epoch datetime field (e.g. 1362960734565) that I can search on easily (e.g. all documents created after 1234560123456), or do I need to implement some method to split up the date or put it in another…
Numbat
  • 379
  • 2
  • 15
4
votes
1 answer

GAE Search API - useful for twitter style fan-out?

Just curious what the recommended best practice is for the 'million follower' twitter-style fanout problem on AppEngine. Is it still Brett Slatkin's proposed solution (see:…
peterk
  • 583
  • 1
  • 4
  • 8
4
votes
1 answer

GAE Full Text Search API phrase matching

I can only find exact phrase matching for queries in the experimental Search API for Google App Engine. For example the query 'best prices hotel' will only match that exact phrase. It will not match texts such as 'best hotel prices' or 'best price…
Anders
  • 71
  • 5
3
votes
2 answers

GAE Backend- Process terminated because it failed to respond to the start request with an HTTP status code of 200-299 or 404

In Google App Engine Java, i am trying to run backend but i always get Error message in backends log.. Process terminated because it failed to respond to the start request with an HTTP status code of 200-299 or 404. App Engine Logs 2014-12-07…
yogesh
  • 463
  • 6
  • 15
1
2 3 4 5 6 7