Please enable JavaScript.
Coggle requires JavaScript to display documents.
Query Structures & Searching Techniques By (232264) Shaikh Abdul Ahad …
Query Structures & Searching Techniques By (232264) Shaikh Abdul Ahad
Keyboard-Based Querying
Simple Text Queries
Basic keyword search
No special syntax required
Case-insensitive (mostly)
Boolean Operators
AND: All terms must be present
OR: Any term may be present
NOT: Exclude specific terms
Phrase Searching
Enclose phrase in quotes: "..."
Finds exact word order match
Reduces irrelevant results
Proximity Operators
Terms close to each other
NEAR/n: Within n words
WITHIN/n: Similar usage
Pattern Matching
String Matching Techniques
Exact match of strings
Case-sensitive or insensitive
Character-by-character comparison
Wildcards and Truncation
Use of * or ? for flexible search
= multiple characters (e.g., comput*)
? = single character (e.g., te?t)
Regular Expressions
Advanced pattern search tool
Supports symbols, ranges, repetitions
Example: ^[A-Za-z0-9._%+-]+
[A-Za-z0-9.-]+\.[A-Za-z]{2,}$
Edit Distance (Levenshtein Distance)
Measures difference between strings
Count of insertions, deletions, substitutions
Lower distance = more similar
Query Structures
Flat Queries
Simple list of terms
No structure or nesting
Equal importance for all terms
Hierarchical Queries
Nested structure of terms
Reflects concept hierarchy
Useful for taxonomies or categories
Tree-Based Queries
Represented as a tree model
Nodes = query components
Allows branching and dependencies
Weighted Queries
Assign weights to terms
Indicates importance (e.g., AI^3 data^1)
Higher weight = more influence on ranking
Structured Queries
Query Languages
SQL for relational databases
XQuery for XML data
Formal, rule-based syntax
Structured Query Systems (Relational DBs, XML Databases)
Use predefined schema
Store data in tables or tree structures
Require specific query languages
Fielded Searches (e.g., Title:..., Author:...)
Increases precision of search
Often used in digital libraries & databases
Combines with Boolean operators
Metadata-Based Querying
Enhances filtering and sorting
Common in document & media retrieval
Not content-based, but descriptor-based