Web indexing, also referred to as Internet indexing, comprises methods for indexing the contents of a website or of the Internet as a whole. It is the process of collecting, parsing, and storing data to facilitate fast and accurate information retrieval. An alternate name for this process, particularly in the context of search engines designed to find web pages on the Internet, is search engine indexing.
Individual websites or intranets may use a back-of-the-book index (also called "web site A-Z indexes"), while search engines typically use keywords and metadata to provide a more useful vocabulary for Internet or onsite searching. With the increase in the number of periodicals that have articles online, web indexing is also becoming important for periodical websites.
Types of Web Indexing
Back-of-the-book-style web indexes present an alphabetical browse view or interface, where users can look up terms in an A-Z listing. This differs from browsing through layers of hierarchical categories (a taxonomy).
Metadata web indexing involves assigning keywords, descriptions, or phrases to web pages or web sites within a metadata tag (or "meta-tag") field, so that the web page or web site can be retrieved. This method is commonly used by search engine indexing.
Search engine indexing (the most prevalent form of web indexing) involves the collection, parsing, and storage of data to enable fast and accurate information retrieval. Index design incorporates interdisciplinary concepts from linguistics, cognitive psychology, mathematics, informatics, and computer science.
How Search Engine Indexing Works
Indexing Process
Popular search engines focus on full-text indexing of online, natural language documents. The process begins with web crawling, where automated programs (crawlers or spiders) traverse the web by following hyperlinks and downloading web pages. The content is then parsed and tokenized — broken down into individual words or tokens — and stored in data structures that facilitate efficient searching.
Key Data Structures
Inverted Index: The most common data structure in search engine indexing. It stores a list of documents containing each word, allowing the search engine to quickly locate documents relevant to a query. For example, for the word "cow," the inverted index might list Document 2, Document 3, and Document 4. Positional indices also store the exact position of each word within documents, enabling phrase searching.
Forward Index: Stores a list of words for each document. During parsing, the system intermediately stores words per document. The forward index is then sorted to transform it into an inverted index.
Suffix Tree / Suffix Array: Tree-like structures that support linear-time lookup and are used for pattern matching.
Citation Index: Stores citations or hyperlinks between documents to support citation analysis.
Tokenization and Parsing
Document parsing breaks apart the components (words) of a document for insertion into forward and inverted indices. The words found are called tokens, and the process is called tokenization. It involves:
- Word boundary identification: Recognizing where words start and end (challenging for languages like Chinese or Japanese that lack whitespace delimiters)
- Language recognition: Identifying the language of each document
- Format analysis: Handling different file formats (HTML, PDF, plain text, Microsoft Word, etc.)
- Section recognition: Identifying major parts of a document to avoid indexing sidebars and navigation content as primary content
Index Design Factors
Major factors in designing a search engine's indexing architecture include:
- Merge factors: How data enters the index and whether multiple indexers can work asynchronously
- Storage techniques: Whether data should be compressed or filtered
- Index size: How much computer storage is required
- Lookup speed: How quickly a word can be found in the inverted index
- Maintenance: How the index is maintained over time
- Fault tolerance: Reliability in dealing with index corruption and hardware failures
Challenges
Scale
Generating or maintaining a large-scale search engine index represents a significant storage and processing challenge. For example, indexing 2 billion web pages might involve storing 500 billion word entries, requiring substantial compression techniques to reduce storage costs.
Parallelism and Concurrency
Search engines must manage competing tasks — new documents are added to the corpus while the index simultaneously responds to search queries. This producer-consumer model becomes more complex in distributed computing environments involving multiple machines operating in unison.
Spamdexing
Content may be manipulated to unfairly influence search rankings, such as by hiding hundreds of words from view but making them visible to the indexer, or by setting font colors identical to background colors.
Language and Format Diversity
Search engines must handle multiple languages (including those without clear word boundaries), diverse file formats (HTML, PDF, PostScript, XML, etc.), and faulty or corrupted document storage.
Meta Tag Indexing
Meta tag indexing plays a role in organizing web content. Earlier Internet search engines relied primarily on keywords in HTML meta tags rather than full-text indexing. As marketing-oriented keyword abuse led to spamdexing, search engines increasingly adopted full-text indexing technologies in the 1990s for more objective and higher-quality results.
See Also
- Search engine indexing
- Web crawler
- Information retrieval
- Inverted index
- Search engine optimization