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
0
votes
0 answers

Why are distance searches using App Engine's Search Api returning no matches even in a production app?

I am trying to run a distance search to retrieve indexed locations near a given geopoint, but I always get zero matches even for a deployed version of the app. I tried to run the search through the App Engine Console as well, but still could not get…
Price
  • 2,683
  • 3
  • 17
  • 43
0
votes
1 answer

How to link datastore with document using key

I will be very thankful if someone could help me to solve this problem as I have already spent a lot of time on it. The frontend of my application sends employee data to server end, which creates Emmployee object and saves the data on…
0
votes
1 answer

What should be default value for SortExpression Google App Engine search for 'distance()'?

I have such SortExpression: from google.appengine.api.search import search search.SortExpression(expression = 'distance(geoLocation, geopoint(%s, %s))' % (geoLatitude, geoLongitude), direction =…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
0
votes
1 answer

How to reference the document language with appengine search API?

I can add docs to the index and search the index but how can I filter by language? For instance only docs in English? doc = search.Document(doc_id=str(article.key()), fields=[ search.TextField(name='title', value=article.title), …
0
votes
0 answers

java + app engine + cloudSQL + spring/hibernate

I am using Spring Hibernate with app engine and cloudSQL for my project but i am getting one error frequently. This occurs when application becomes ideal for sometimes. For every query (fetching or save/update to database), i open session and close…
0
votes
1 answer

Is this a bug in the GAE Search API?

I'm implementing a full text search based on the song database on GuitarParty.com. The data consists of lyrics in multiple languages, which is not a problem per se. However, when search results are returned using snippeted_fields all accented…
0
votes
1 answer

App Engine return more than 20 full text search results

I need to loop through the maximum amount of full text search results with Python App Engine SDK. My code is currently as follows: search_index = search.Index(name="fullText") indexed_results = search_index.search(search_query) for scored_document…
ljs.dev
  • 4,449
  • 3
  • 47
  • 80
0
votes
3 answers

GAE Search API Query with "Date = YYYY-MM-DD" returns no results

I am trying to perform a simple Date query on Google App Engine using the Search API. All I am trying to achieve is to obtain a list of all Documents that have a Field equal to a certain Date... // Prepare the Query String searchString = "date =…
wattostudios
  • 8,666
  • 13
  • 43
  • 57
0
votes
1 answer

Search API, create documents and indexes

I need help in the search API I am Brazilian and I'm using the google translator to communicate. My question is: For each item in the datastore persisted I create a document and an index? And for those objects that are already persisted in the…
0
votes
2 answers

Google App Engine - Add search fields for multiple tags (adding multiple tags to search)?

I want use Search API but not know how to add multiple tags - it is not describe clearly. Can I do such thing: fields = [] for tag in self.tags: fields.append(search.TextField(name = 'tag', value = tag)) Or it need different approach since…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
0
votes
1 answer

GAE Java Search API: What's the acceptable range for QueryOptions.Builder.setLimit(int)

Apparently the default query limit on the number of returned documents is currently 20. Changing it is possible by using QueryOptions.Builder.setLimit(). Java dev docs don't seem to indicate the allowed maximum. I have thousands of records indexed…
Boris Brudnoy
  • 2,405
  • 18
  • 28
0
votes
2 answers

Is there anyway to do a GROUP BY and COUNT with GAE's search API?

I just started using GAE's search API and I'm looking for the equivalent of a SQL group by count statement. Does something like this currently exist?
Brandon
  • 2,886
  • 3
  • 29
  • 44
0
votes
1 answer

Appengine Search API - Globally Consistent

I've been using the appengine python experimental searchAPI. It works great. With release 1.7.3 I updated all of the deprecated methods. However, I am now getting this warning: DeprecationWarning: consistency is deprecated. GLOBALLY_CONSIST However,…
0
votes
2 answers

INVALID_REQUEST exception when adding a document with repeated field names to an index with the search API

I am able to add a document to an index when each field name is unique, but when I attempt to update the document (meaning, I use the same code to add it again with the same id and same field names but with one of the field names repeated), I get an…
0
votes
1 answer

SEARCH API: Adding Documents To An Index

I have been using Search API for my application so far successfully. I was able to add documents to index successfully yesterday. But when I tried to execute the same today, it gave me this exception. Exception: Caused by:…
Anantha Krishnan
  • 31
  • 1
  • 1
  • 7