O'Reilly logo

Mastering Google App Engine by Mohsin Shafique Hijazee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Queries

Now that we have some data indexed, it is time to get it back and that's where queries fit in. Queries can be as simple as a single word and might be complex by including various Boolean operations. Let's expand our understanding gradually.

Simple queries

The simplest form of a query is a single term like this:

q = "gym"

Now there's a simple algorithm at work. First of all, because no field name is mentioned here and it is just a string so this word gym would be searched in all the document fields. All the document fields, you say? What's the point of searching this gym in a number field or a date field for that matter because they won't contain such content, you might ask. You're right. Basically, there are few simple rules for this as follows: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required