Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Google App Engine

You're reading from   Mastering Google App Engine Build robust and highly scalable web applications with Google App Engine

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781784396671
Length 368 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

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:

  1. If the search term looks like string, first TextField, HTMLField are searched and lastly AtomField is looked up. In case of HTML and Text fields, the string might appear anywhere in them but in case of AtomField, the whole search string must be...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime