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

The underlying principle

The underlying principle is very simple. Suppose you have some text files that you want to be able to search. All the text contained in these files would be tokenized (broken into words and atomic units if you will) and a list (called an index) of these words is created that has all these words in a sorted order along with their position and location in each file.

So suppose that we have three files like this:

ages.txt
   The age of Internet is upon us.
tech.txt
Technology changes often in age of Internet.
goal.txt
To build a technology product.

Now all these files would be tokenized and each word (called a term) would have its corresponding location like this:

age [ages.txt:5, tech.txt:27]
build [goal.txt: 3]
change [tech.txt: 11]
internet [age.txt:11, tech.txt:34]
product [goal.txt:22]

Now, this is what we call an index. A few important things that we should take note of are:

  • First, all the listed words (tokens or terms) are sorted in alphabetic order.
  • The next thing...
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