gae-search

Accessing Google App Engine's Search API from PHP

元气小坏坏 提交于 2020-01-24 18:50:48
问题 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? 回答1: The search API is only enabled for Python Java and Go, as Mario pointed out. I would look into the modules documentation and try to separate your logic. Your search API can be the only module that isn't in PHP. There is no other solution for your problem unfortunately. 回答2: The team promised that a REST API would be made available at Google I/O

quotas on appengine search api for java

谁说我不能喝 提交于 2020-01-11 01:50:07
问题 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<Document> documents = new ArrayList<Document>(); for (FacebookAlbum album: user.listAllAlbums()) { Document doc = Document.newBuilder() .setId(album.getId()) .addField(Field.newBuilder().setName("name").setText(album.getFullName())) .addField(Field.newBuilder().setName("albumId").setText(album.getAlbumId())) .addField(Field.newBuilder().setName("createdTime")

IOException: Changed index specification

和自甴很熟 提交于 2019-12-23 16:38:57
问题 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 Mode and my index is populated, it's subsequently programmatically accessible. If the Dev Mode is terminated and started again, programmatic access attempts fail (no results returned) as follows: SEVERE: Failed to access index java.io.IOException:

How to delete a search Index itself

旧街凉风 提交于 2019-12-12 08:39:18
问题 Search Index has a method to delete a document. https://developers.google.com/appengine/docs/python/search/indexclass (Python) https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/search/Index (java) But how to delete Index itself? Empty Index was listed at the Text Search Panel in the Admin Console. but no button to delete. 回答1: Since you have tagged gae-search I assume your question refers to an index of the Search API (i.e. full text search service, not NDB

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

感情迁移 提交于 2019-12-07 03:10:03
问题 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 meters of each other. I would like to find the closest document to a specific set of coordinates but find the following code gives incorrect results: from google.appengine.api import search # coords are in the form of a tuple e.g. (50.123, 1.123)

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

微笑、不失礼 提交于 2019-12-05 07:58:46
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 meters of each other. I would like to find the closest document to a specific set of coordinates but find the following code gives incorrect results: from google.appengine.api import search # coords are in the form of a tuple e.g. (50.123, 1.123) search.Document( doc_id='meaningful-unique-id', fields=[search.GeoField(name='location' value=search

Google App Engine - Using Search API Python with list fields

让人想犯罪 __ 提交于 2019-12-04 21:33:49
问题 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 integer) DateField : a date with no time component GeoField : a locale based on latitude and longitude Suppose I have a 'tags' field which is a list field: tags = ndb.StringProperty(repeated=True) How am I supposed to treat this field with search.Document ? Right now I

Google App Engine - Using Search API Python with list fields

这一生的挚爱 提交于 2019-12-03 13:13:29
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 integer) DateField : a date with no time component GeoField : a locale based on latitude and longitude Suppose I have a 'tags' field which is a list field: tags = ndb.StringProperty(repeated=True) How am I supposed to treat this field with search.Document ? Right now I'm turning tags list into a string: t = '|'.join(tags) And then: search.TextField(name=cls.TAGS, value=t

quotas on appengine search api for java

流过昼夜 提交于 2019-11-30 19:25:13
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<Document> documents = new ArrayList<Document>(); for (FacebookAlbum album: user.listAllAlbums()) { Document doc = Document.newBuilder() .setId(album.getId()) .addField(Field.newBuilder().setName("name").setText(album.getFullName())) .addField(Field.newBuilder().setName("albumId").setText(album.getAlbumId())) .addField(Field.newBuilder().setName("createdTime").setDate(Field.date(album.getCreatedTime()))) .addField(Field.newBuilder().setName("updatedTime").setDate

GAE Full Text Search API phrase matching

女生的网名这么多〃 提交于 2019-11-28 12:40:16
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 hotels'. It's of course a much more difficult task to match text in a general way but I thought the Search API would at least be able to handle some of that. Another example is the query 'new cars' which will not match the text 'new and used cars'. You should be able to use the '~' operator to rewrite queries to include plurals. E.g., ~hotel or ~