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
2
votes
5 answers

How can you check Search API Quota usage in GAE?

For a few days in a row I have a Search API error: OverQuotaError: The API call search.IndexDocument() required more quota than is available. I almost sure that I have not reached [quota limits] but I cannot find a way to make sure. How can I…
Janusz Skonieczny
  • 17,642
  • 11
  • 55
  • 63
1
vote
1 answer

Appengine Search API - InvalidRequest

I'm using Search API (https://cloud.google.com/appengine/docs/standard/python/search/) on Google App Engine Python Standard Environment. In my app I have several search indexes and query them with cursor pagination (paging pagination can't return…
glmvrml
  • 1,612
  • 2
  • 14
  • 31
1
vote
1 answer

Is my GAE Search corrupt?

I've got a single index in a GAE Search application. When I call index.put I get the OverQuotaError: The API call search.IndexDocument() required more quota than is available. When I got to the GAE Console and look under Search then my index…
Carl
  • 2,896
  • 2
  • 32
  • 50
1
vote
1 answer

Geosearch Search API GAE filtering distance(geopoint(MY_GEOPOINT), store_location) < DISTANCE queries

I in doubt about how the Search API makes the queries, especially how it scans the Documents in the Index. My doubt is the following: I have an Index with a lot of Documents with GeoPoints on it. I want to list the points that are in an specific…
jluiz20
  • 199
  • 1
  • 2
  • 12
1
vote
2 answers

Google App Engine Search API Not Including Time in DateField Sort

I have set of search documents that have a DateField that I would like to sort by. The values in this field also contain the time. When I try to sort descending by this field, I'm getting the dates to sort correctly, but it seems as though the time…
Brandon
  • 2,886
  • 3
  • 29
  • 44
1
vote
1 answer

How to implement a custom spell check in the search API of GAE

In my python GAE application, I am allowing users to query on items using the search api where I initially put in the documents with the exact tags, but the hits are not much given the spell correction that needs to be present. The way I found was…
minocha
  • 1,043
  • 1
  • 12
  • 26
1
vote
0 answers

Why would an App Engine datastore entity have different value when it shows up in a query than when it is accessed directly?

I have a saved entity in app engine that shows a different value for the status field when it shows up in a query than when I access it directly. I've flushed the cache several times in the admin page and the values are still different. It has been…
1
vote
1 answer

Proximity Search with Google App Engine and Search API

I am using Python2.7, Google App Engine 1.9.* and Search API. I store location-enabled points of interest. Now I want to implement GET that returns all points of interest within certain proximity from a given location. Examples that I found in…
Michael
  • 1,851
  • 4
  • 19
  • 26
1
vote
2 answers

How to query atom field with unicode value in Google App Engine production search?

I wrote some text search with use Google App Engine search. In SDK I tested such query on atom field: u'tag:"wartości"' In production I run the same query but it not works on same data. How can I do unicode query on atom field? Is it possible to…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
1
vote
2 answers

How to model geography for datastore inserts?

I have a primitive data model with users that can make inserts that should have a city and a region. To prepare for articles that are connected with several cities (so that for instance a product offering that is the same in two or more cities will…
1
vote
1 answer

GAE Search: Atom Fields with Quotes

I'm getting started with Google App Engine, and I'm using the Search API. Can I construct a search query against an Atom field if that field has quotation marks in it? I don't see a way to escape quote characters in the query documentation.
Eric Simonton
  • 5,702
  • 2
  • 37
  • 54
1
vote
1 answer

What length does '1024**2' signify in GAE Search API TextField docs?

I'm planning to use GAE's Search API for some fulltext string indexing but am unsure of what something in the documentation means: Text Field: A string with maximum length 1024**2 characters.
ljs.dev
  • 4,449
  • 3
  • 47
  • 80
1
vote
1 answer

Restricting search to a subset of document fields

Is it possible to restrict the GAE full text search to specific document fields? In other words, if the query is only matched to contents of the field being ignored, could that document be excluded from search results?
Boris Brudnoy
  • 2,405
  • 18
  • 28
1
vote
1 answer

GAE Search API number_found_accuracy

I am working with the Python runtime (if that matters for this). I have been struggling with the number_found_accuracy. The documentation on the api is a bit lacking for this particular field. The name of it seems to suggest one would set it to a…
Jay
  • 525
  • 5
  • 15
1
vote
1 answer

How to organize indexing process in google app engine?

I have some text files with data to be indexed in my search-app on google app engine. I just don't understand when should I execute a function that puts all docs into index. Currently I am trying to perform it in get-request on some admin page. But…
typedef
  • 1,800
  • 3
  • 11
  • 19