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
3
votes
1 answer

How can I sort appengine search index results by relevance?

I'm working on a project that uses Google App Engine's text search API to allow users to search for documents that include a words field. I'm sorting using a MatchScorer, which according to the documentation "assigns a score based on term frequency…
Greg
  • 33,450
  • 15
  • 93
  • 100
3
votes
1 answer

App Engine 1.8.4 raises AttributeError putting document into search index

I'd been using the 1.8.1 version of the App Engine API due to a known issue with the remote API in a later version. Trying the latest 1.8.4, I'm encountering an error with code that was working fine in 1.8.1 but now fails trying to add a document to…
ljs.dev
  • 4,449
  • 3
  • 47
  • 80
3
votes
3 answers

IOException: Changed index specification

I am developing a GWT 2.5.1 and GAE/J 1.7.6 web app using Eclipse Juno/Google Plugin for Eclipse, and I am experimenting with the Search API. After an upgrade to the 1.7.6 GAE SDK the following started happening: When the app is running in GAE Dev…
Boris Brudnoy
  • 2,405
  • 18
  • 28
3
votes
1 answer

Does FullText search support schema-less indexes?

I'm trying to use the Appengine Search API to let users query over multiple datasets which each have their own schema. More specifically: Users have access to multiple data sets. Each dataset has many rows. Each dataset has a set of columns. Each…
aloo
  • 5,331
  • 7
  • 55
  • 94
2
votes
0 answers

Is it possible to do Geosearch API using google datastore (GAE) and Nodejs

I have a set of lat/longs stored in datastore db and I want to use Nodejs and Google datastore to return the result of shops surrounding me in desc order based on the distance. i.e. I have location and I want to retrieve all the shops saved in the…
2
votes
1 answer

GAE Full Text Search API on datastore entities using Golang

I heard that we have app engine Search API support for Golang. but it is not clear if we have can use this search API on GAE datastore entities (the Google IO 2011 video says it is possible, but not sure if that is really supported using Golang).…
srini
  • 1,110
  • 3
  • 11
  • 20
2
votes
1 answer

Migrating from Google App Engine ecosystem

Are there any tools and/or best-practices, that make the process of migration from GAE (Python or PHP) with it's ecosystem of services (s.a. authentication, datastore, search, caching etc.) to an alternative cloud hosting service, or even…
bdutta74
  • 2,798
  • 3
  • 31
  • 54
2
votes
4 answers

Accessing Google App Engine's Search API from PHP

Is there anyway to do this? I've looked in the google-api-php-client library but it's not there yet. Is there any other way or am I out of luck?
2
votes
2 answers

Transient error ( consistent ) on deleting search documents on GAE

We're getting a consistent error on one of our GAE applications ( the stack trace is below ). Does anyone know what could be causing this? It throws a transient error ( which should be a short lived error ), but we get this error…
2
votes
1 answer

Search API, how to like query

I'm using the Search API GAE, how to make a query like "like%"? as is done in SQL example: select * from person where name like '% john%';
2
votes
1 answer

Why geolocation queries not work in Google App Engine SDK 1.8.1?

Why this query not work in SDK console on - I want to find at least one place? I opened SDK console and enter following queries without any results. distance(geoLocation , geopoint(52.23261180, 21.02342870)) < 400000 distance(geoLocation ,…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
2
votes
1 answer

How to perform stemming/lemming on GAE-search application?

I am trying to implement stemming in my search app. I have already tried using ~ operator, but it didn't work. So, I have 3 questions: 1) Should I index a document in some special way to be able to search it using ~ operator? I have a document…
typedef
  • 1,800
  • 3
  • 11
  • 19
2
votes
1 answer

Google App Engine - Searching for Locations within a Specified Distance returning Zero results

Searching geolocations by distance using GAE Search API (1.7.6) returns zero results always... I build the following query: distance(geoLocation, geopoint(27.241131, -82.464445)) < 16093 /* 10 Miles in meters */ Results are always zero although I…
user1791567
  • 1,388
  • 1
  • 16
  • 29
2
votes
1 answer

Google App Engine Search API Performing Location Based Searches

I have been going through trying to find the best option on Google App Engine to search a Model by GPS coordinates. There seem to be a few decent options out there such as GeoModel (which is out of date) but the new Search API seems to be the most…
clifgray
  • 4,313
  • 11
  • 67
  • 116
2
votes
1 answer

GAE Search API. Obtain total amount of matching documents

Hi, I am using GAE Search API, and it seems to be a really great feature, which by the way adds so vital functionality lacked in standard datastore queries.But i have faced a problem to implement a standard pagination, namely to get a total amount…
Peter
  • 119
  • 9