0% found this document useful (0 votes)
16 views5 pages

Text

Uploaded by

RAUSHAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views5 pages

Text

Uploaded by

RAUSHAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

In association with and

Chapter 2
Architecture of a Search Engine
Search Engines and Information Retrieval
Full Credit: Croft et al. - http://www.search-engines-book.com/
In association with and
Search Engine Architecture
● A software architecture consists of software components, the interfaces
provided by those components (APIs), and the relationships between them
○ describes a system at a particular level of abstraction
● Architecture of a search engine determined by 2 requirements
○ effectiveness (quality of results, aka relevance) and efficiency (response time
and
throughput)
In association with and
Indexing Process
WWW
In association with and
Indexing Process
● Text acquisition
○ identifies and stores documents for indexing
● Text transformation
○ transforms documents into index terms or features
● Index creation
○ takes index terms and creates data structures (indexes) to support fast
searching
Query Process
● Query Suggest
● Query refinements
● Spell correction
● User clicks
● Mouse tracking
In association with
and
In association with and
Query Process
● User interaction
○ supports creation and refinement of query, display of results
● Ranking
○ uses query and indexes to generate ranked list of documents
● Evaluation
○ monitors and measures effectiveness and efficiency (primarily offline)
In association with and
Indexing Process
Details: Text Acquisition
● Crawler
○ Identifies and acquires documents for search engine
○ Many types – web, enterprise (internal inside the firewall), desktop
○ Web crawlers follow links to find documents
■ Must efficiently find huge numbers of web pages (coverage) and keep them up-to-
date (freshness)
■ Single site crawlers for site search
■ Topical or focused crawlers for vertical search
● Documents on a topic link to other documents on the topic
● Use text classification to classify topic
○ Document crawlers for enterprise and desktop search
■ Follow links and scan directories
In association with
and
Text Acquisition
● Feeds
○ Real-time streams of documents
■ e.g., web feeds for news, blogs, video, radio, tv
○ RSS is common standard (Really Simple Syndication)
■ RSS “reader” can provide new XML documents to search engine
■ E.g. Feedly is a RSS reader for users
● Conversion
○ Convert variety of documents into a consistent text plus metadata format
■ e.g. HTML, XML, Word, PDF, etc. → XML
○ Convert text encoding for different languages
■ Using a Unicode standard like UTF-8
In association with
and
Text Acquisition
● Document data store
○ Stores text, metadata, and other related content for documents
■ Metadata is information about document such as type and creation date
■ Other content includes title, links, anchor text
○ Provides fast access to document contents for search engine components
■ e.g. result list generation
○ Could use relational database system
■ Not designed for document storage (designed for structured data, e.g. numbers,
dates etc.)
■ More typically, a simpler, more efficient storage system is used due to huge
numbers of
documents
In association with
and
In association with and
Indexing Process
Text Transformation
● Parser and Tokenizer
○ Processing the sequence of text tokens in the document to recognize structural
elements
■ e.g., titles, links, headings, etc.
○ Tokenizer recognizes “words” in the text
■ must consider issues like capitalization, hyphens, apostrophes, non-alpha
characters,
separators [c++] [AT&T]
○ Markup languages such as HTML, XML often used to specify structure
■ Tags used to specify document elements
● E.g., <h2> Overview </h2>
■ Document parser uses syntax of markup language (or other formatting) to identify
structure
In association with
and
Text Transformation
● Stopping - stop words
○ Remove common words
■ e.g., “and”, “or”, “the”, “in”
○ Some impact on efficiency and effectiveness
○ Can be a problem for some queries ["to be or not to be"]
● Stemming
○ Group words derived from a common stem
■ e.g., “computer”, “computers”, “computing”, “compute”
○ Usually effective, but not for all queries [transformers] changes to
[transformer]
○ Benefits vary for different languages
In association with
and
Text Transformation
● Link Analysis
○ Makes use of links and anchor text in web pages
○ Link analysis identifies popularity and community information
■ e.g., PageRank (a particular link analysis algorithm)
○ Anchor text can significantly enhance the representation of pages pointed to by
links
○ Significant impact on web search
■ Less importance in other applications
● Because web is link heavy
In association with
and
Text Transformation
● Information Extraction
○ Identify classes of index terms that are important for some applications
○ e.g., named entity recognizers identify classes such as people, locations,
companies,
dates, etc.
● Classifier
○ Identifies class-related metadata for documents
■ i.e., assigns labels to documents
■ e.g., topics, reading levels, sentiment, genre
○ Use depends on application
In association with
and
In association with and
See you next time
Image Credit: Adobe Text to Image
In association with and
Indexing Process
Index Creation
● Document Statistics
○ Gathers counts and positions of words and other features
○ Used in ranking algorithm
● Weighting
○ Computes weights for index terms (how salient is a term for a document?)
○ Used in ranking algorithm
○ e.g., tf.idf weight
Freq in the document aka tf
1 / number of document a word occurs in (document frequency or df)
■ Combination of term frequency in document and inverse document frequency in the
collection
In association with
and
In association with and
Index Creation
● Inversion
○ Core of indexing process
○ Converts document-term information to term-document for indexing
■Difficult for very large numbers of documents
●w1 -> d23:2, d456789:17, d23598237459:1, d823475293874:25
●w23457823 -> d23, d1234
○ Format of inverted file is designed for fast query processing
■Must also handle updates
■Compression used for efficiency
0
3
d1 d2
w1
w2
w100000000000000
Index Creation
● Index Distribution
○ Distributes indexes across multiple computers and/or multiple sites
○ Essential for fast query processing with large numbers of documents
○ Many variations
■ Document distribution, term distribution, replication
○ P2P and distributed IR involve search across multiple sites
In association with
and
Query Process
● Query Suggest
● Query refinements
● Spell correction
● User clicks
● Mouse tracking
In association with
and
User Interaction
● Query input
○ Provides interface and parser for query language
○ Most web queries are very simple, other applications may use forms
○ Query language used to describe more complex queries and results of query
transformation
■ e.g., Boolean queries, Indri and Galago query languages
■ similar to SQL language used in database applications
■ IR query languages also allow content and structure specifications, but focus on
content
In association with
and
User Interaction
● Query transformation
○ Improves initial query, both before and after initial search
○ Includes text transformation techniques used for documents
○ Spell checking and query suggestion provide alternatives to original query
○ Query expansion and relevance feedback modify the original query with additional
terms
In association with
and
User Interaction
● Results output
○ Constructs the display of ranked documents for a query
○ Generates snippets to show how queries match documents
○ Highlights important words and passages
○ Retrieves appropriate advertising in many applications
○ May provide clustering and other visualization tools
In association with
and
Query Process
● Query Suggest
● Query refinements
● Spell correction
● User clicks
● Mouse tracking
In association with
and
Ranking
● Scoring
○ Calculates scores for documents using a ranking algorithm
○ Core component of search engine
○ Basic form of score is ∑ qi
di

■ qi
and di
are query and document term weights for term i
○ Many variations of ranking algorithms and retrieval models
In association with
and
Ranking
● Performance optimization
○ Designing ranking algorithms for efficient processing
■ Term-at-a time vs. document-at-a-time processing
■ Safe vs. unsafe optimizations
● Distribution
○ Processing queries in a distributed environment
○ Query broker distributes queries and assembles results
○ Caching is a form of distributed searching
In association with
and
Query Process
● Query Suggest
● Query refinements
● Spell correction
● User clicks
● Mouse tracking
In association with
and
Evaluation
● Logging
○ Logging user queries and interaction is crucial for improving search
effectiveness and
efficiency
○ Query logs and clickthrough data used for query suggestion, spell checking,
query
caching, ranking, advertising search, and other components
● Ranking analysis
○ Measuring and tuning ranking effectiveness
● Performance analysis
○ Measuring and tuning system efficiency
In association with
and
How Does It Really Work?
● This course explains these components of a search engine in more detail
● Often many possible approaches and techniques for a given component
○ Focus is on the most important alternatives
○ i.e., explain a small number of approaches in detail rather than many approaches
○ “Importance” based on research results and use in actual search engines
○ Alternatives described in references
In association with
and
In association with and
See you next time
Image Credit: Adobe Text to Image

You might also like