Description
#5 in the Omni* Library Suite — OmniSync, OmniBase, OmniFlow, OmniHUD, OmniUI & OmniSearch
OmniSearch (LibOmniSearch-1.0) is a high-speed in-game FZF-v2 + BM25F Fuzzy Search Engine, Myers Typo-Tolerant Matcher, Bytecode Query DSL Compiler, Native C++ WoW Item/Tooltip Filter Engine, UTF-8/Cyrillic Normalizer, and Coroutine-Budgeted Inverted Index built for Retail / Midnight (12.x), WoW Forever (1.60.1), TBC Anniversary, Classic Era, Wrath, Cata, and Mists.
Addons replace CustomSearch-1.0, ItemSearch-1.3, and LibTranslit-1.0 plus slow per-keystroke linear string.find or hidden GameTooltip loops with one zero-idle LibStub("LibOmniSearch-1.0") dependency via ## Dependencies: OmniSearch and a 4-tab live Studio & Benchmark UI at /osrch.
Addon Authors: Upgrade Your Existing Addon in 1 Click (Zero Handler Rewrites)
1-Click Web Converter Studio: https://fishingbuddyforever.com/Omnisearch | Offline Kit: OmniSearch-Developer-Kit.zip
You do not need to rewrite your addon to start using OmniSearch. Pick any workflow below:
- Browser
.zip& Folder Converter (Hybrid or Bridge Mode): Drag & drop any existing addon.zipor unpacked folder at fishingbuddyforever.com/Omnisearch to inspect exact unified diffs in-browser. Automatically swapsItemSearch-1.3,LibItemSearch-1.2,CustomSearch-1.0, andLibTranslit-1.0calls toOmniSearchBridge-1.0, preserves vendoredLibs/, injects## Dependencies: OmniSearch, and generates an optionalOmniSearch_Indexes.luaasync index & Spotlight blueprint. - Built-In
v1.0.1+1-Line Drop-In API (CreateLegacyBridge/EmbedLegacySearch): Calllocal Search = LibStub("LibOmniSearch-1.0"):CreateLegacyBridge()(or:EmbedLegacySearch(MyAddon)) and your existing:Matches,:Compile,:Find,:Clean,:Compare, and:Transliteratecalls immediately gain FZF-v2/Myers typo tolerance, cachedC_TooltipInfo/wueWarbound filtering, and MidnightSecretGuardsafety. - Offline Python CLI, In-Game
/osrch convert& AI Coding Agent Skill: Runmigrate_to_omnisearch.py --mode hybridlocally, click Addon Authors: 1-Click Converter inside/osrch(or run/osrch convert), or dropSKILL.md/MIGRATE_PROMPT.mdinto Cursor, Claude Code, Codex, or Antigravity. - License & CurseForge Required Dependency Policy (
All Rights Reserved): OmniSearch is proprietary and non-embeddable — third-party addon makers may not bundleLibOmniSearch-1.0files and must list standalone OmniSearch as a Required Dependency on CurseForge (under Project/File Relations) in addition to## Dependencies: OmniSearchin their.toc.
Measured Improvement Over Legacy Libraries (Median of 5 Rounds)
Every timing below was measured cleanly in Tests/bench_vs_legacy.py under strict Lua — using collectgarbage("stop") for heap churn and time.perf_counter() for wall clock — directly against verbatim upstream CustomSearch-1.0 v14 + ItemSearch-1.3 v15, LibTranslit-1.0 v4, and a linear GetItemInfo + GameTooltip:SetHyperlink scanner:
| Scenario | OmniSearch | Legacy Baseline & Gain |
|---|---|---|
| Multi-Filter DSL (10k Items) (ilvl>=600 q>=epic haste) | 3.35 ms, 204.9 KB GC (236 hits) | 7.4x–8.8x faster CPU, 8.0x less GC CustomSearch + ItemSearch: 24.77 ms, 1,637.3 KB GC Linear + Tooltip: 29.41 ms, 457.1 KB GC |
| Multi-Filter DSL (50k Items) (ilvl>=600 q>=epic haste) | 18.75 ms, 1,013.7 KB GC (1,173 hits) | 7.8x–7.9x faster CPU, 8.0x less GC CustomSearch + ItemSearch: 145.59 ms, 8,156.2 KB GC Linear + Tooltip: 147.28 ms, 2,313.1 KB GC |
| 6-Keystroke Typing (10k Items) ("t" → ... → "thunder") | 44.72 ms total 0.192 ms final step, 9.1 KB GC | 21.1x–29.4x faster (~817x final step), 4.7x less GC CustomSearch + ItemSearch: 941.53 ms, 25,371.2 KB GC Linear + Tooltip: 1,314.27 ms, 24,429.6 KB GC |
| 6-Keystroke Typing (50k Items) ("t" → ... → "thunder") | 220.79 ms total 0.865 ms final step, 54.3 KB GC | 21.8x–29.9x faster (~928x final step), 4.7x less GC CustomSearch + ItemSearch: 4,819.30 ms, 127,531.5 KB GC Linear + Tooltip: 6,598.89 ms, 123,926.8 KB GC |
| Range + Anchor + Money (50k) (ilvl:600..640 ^thunder price<100g50s) | 0.082 ms, 5.2 KB GC (1 hit) | Sub-0.1 ms pushdown over 50k indexed items Legacy stack: Unsupported (no ranges, anchors, or gold) |
| Acronym, Typos & Warbound (50k) ("tf", "thundrfury", "thudnerfury", wue) | Swap: 1.91 ms / Del: 4.13 ms (#1 Thunderfury) Warbound wue: 20.94 ms (3,409 hits) Acronym tf: 69.11 ms (#1 Thunderfury) | Full FZF-v2 + Myers/Damerau typo & Warbound support CustomSearch + ItemSearch: 0 matches (substring only) |
| Unindexed Bag Scan (200 x 10) (200 slots x 10 queries) | 9.13 ms, 979.3 KB GC (warm cache) Cold 1st scan: 8.15 ms (200 slots) | 1.61x faster CPU, 1.49x less GC + secret-safe wue/socket CustomSearch + ItemSearch: 14.70 ms, 1,463.9 KB GC |
| Cyrillic & Mixed Translit (5k) (5,000 calls) | Pure Cyrillic: 23.98 ms, 429.9 KB GC Mixed 10% Cyr: 4.70 ms, 43.3 KB GC | 2.28x faster pure Cyrillic, 5.03x faster / 3.82x less GC mixed LibTranslit-1.0 v4: 54.61 ms (836.5 KB) / Mixed: 23.63 ms (165.1 KB) |
| Async Build (50k @ 1.5 ms) & OSS1C! | 782 slices, 17.74 ms max slice, 0 idle OnUpdate 2k OSS1C! snapshot: 152.8 KB | Eliminates UI stutter + CBOR+Deflate snapshots Unbudgeted sync build freezes 3,146.9 ms; ItemSearch uses ticker |
| Midnight 12.1.7 Secret Torture (100 secret calls) | 0 / 100 errors (600 secret checks shielded) | 100% crash-proof against Midnight secret strings/tables CustomSearch + ItemSearch: 100/100 crashes LibTranslit-1.0: 100/100 crashes |
Honest Engineering Notes:
- Amortized Build Time & Memory vs Stateless Scanners: Pre-building an inverted trigram + bigram + numeric-column index trades upfront construction cost (601.1 ms / ~47.3 MB heap at 10,000 items; 3,146.9 ms / ~233.8 MB at 50,000 items for synchronous
UpsertBatch, or 782 slices @ 17.74 ms peak frame viaBuildAsync) for 0.08–18.8 ms searches (7.4x–928x faster than linear scans).CustomSearch-1.0+ItemSearch-1.3build no index at startup but re-scan every item linearly on every query.- Unindexed One-Shot Bag Scans (Cold vs Warm): When evaluating unindexed
{bagID, slotIndex}entries for the very first time (200 slots cold),ExtractItemRecordextracts stats, equipment sets, and folded tokens cleanly in 8.15 ms (1,212.2 KB). Subsequent queries viaCompileItemFilterhit the(loc, link, isBound)cache (9.13 ms across 2,000 evaluations vs 14.70 ms inItemSearch-1.3).- Single-Pass Architecture & Fallbacks: Retail 12.x & WoW Forever 1.60.1 use zero-frame
C_TooltipInfoand C++C_EncodingUtil(OSS1C!CBOR+Deflate); Classic Era 1.15.9 / TBC 2.5.6 / Wrath fall back automatically to a single lazy-reused hiddenOmniSearchHiddenScanTooltipframe and pure-LuaOSS1L!compression with identical APIs.
Real-World Impact by Addon Category
- Bag, Bank & Warbank Addons: Instant search across thousands of cached bag/bank/Warband slots supporting
warbound,wue,boe,bop,ilvl:580..639,q>=epic,price<100g,stat:haste, andsocketqueries in under 1 ms per keystroke. - Auction House & Crafting Addons: Coroutine-sliced indexing via
BuildAsync(with optionalOmniFlowcooperative yielding) keeps huge 50,000+ item catalogs responsive with 0 idleOnUpdatehandlers. - Unit, Nameplate & Localized EU/RU Addons: Drop-in
Lib:Transliterate(str, mark)andLib:Normalize(str, true)fold Latin diacritics, smart apostrophes (Kel'Thuzad → kelthuzad), and Cyrillic (Штормград → Shtormgrad), whileFormatHighlightedinserts WoW|cff...|rcolor tags without splitting multi-byte UTF-8 continuation bytes. - Slash-Command & OmniUI VirtualTable Spotlight: Unified
Lib:RegisterProvider/Lib:SearchSpotlightregistry and 1-lineLib:BindVirtualTable(vt, idx)bridge for OmniUI.
Supported WoW Clients
| Client Flavor | TOC Interface(s) | Native Engines Used |
|---|---|---|
| Retail / Midnight 12.x | 120107, 120105, 120100, 120005, 120001, 120000 | Zero-frame C_TooltipInfo, C_EncodingUtil (OSS1C!), SecretGuard |
| WoW Forever 1.60.1 | 16001 | Zero-frame C_TooltipInfo, C_EncodingUtil, C_GameRules + regional surnames |
| TBC Anniversary | 20506, 20505 | Lazy single-frame GameTooltip fallback + pure-Lua OSS1L! snapshots |
| Classic Era | 11509, 11508 | Lazy single-frame GameTooltip fallback + pure-Lua OSS1L! snapshots |
| Mists / Cata / Wrath Classic | 50504, 50503, 40402, 38002, 30405 | Multi-TOC flavor detection & cross-client compatible fallbacks |
Quickstart (Required Dependency Policy)
Do not embed or copy Libs/LibOmniSearch-1.0 (All Rights Reserved). Addon makers must list standalone OmniSearch as a Required Dependency on CurseForge (under Project/File Relations) and declare ## Dependencies: OmniSearch in their .toc:
## Interface: 120107 ## Title: MyAwesomeAddon ## Dependencies: OmniSearch
local OS = LibStub("LibOmniSearch-1.0")
-- Option A (1-Line Drop-In Bridge, v1.0.1+)
local Search = OS:CreateLegacyBridge()
-- Existing :Matches / :Compile / :Find / :Transliterate work!
-- Or: OS:EmbedLegacySearch(MyAddon)
-- Option B (Indexed + Bytecode DSL, 50k items, sub-ms)
local idx = OS:CreateIndex("MyBagCatalog", {
schema = "wow_item",
})
idx:BuildAsync(records, {
onDone = function()
local q = "ilvl>=600 q>=epic wue -frost"
local hits = idx:Search(q, { limit = 50 })
for i = 1, #hits do
local h = hits[i]
local label = OS:FormatHighlighted(
h.record.name, h.spans, "38bdf8"
)
print(label, h.score)
end
end,
})
-- Option C (Direct ItemLocation / Bag Slot Predicate)
local matches = OS:CompileItemFilter(
"boe ilvl:580..639 stat:haste socket"
)
for slot = 1, C_Container.GetContainerNumSlots(0) do
if matches({ bagID = 0, slotIndex = slot }) then
-- highlight matching bag slot
end
end
-- Drop-In Cyrillic Transliteration (2.3x-5.0x faster)
local romanized = OS:Transliterate(unitName)- Studio UI & Benchmarks: Type
/osrchfor Playground, AST & Bag Inspector, Spotlight Registry, Head-to-Head Benchmark Studio, and the Addon Authors: 1-Click Converter popup, or run/osrch convert,/osrch bench, and/osrch stats.
Required Dependency Policy & License: All Rights Reserved (c) 2026 XyGoT. OmniSearch is non-embeddable — third-party addons may not bundle, copy, or redistribute LibOmniSearch-1.0 files inside their own archives (enforced by license and runtime guard). To use OmniSearch, other addon makers are required to list standalone OmniSearch as a Required Dependency on CurseForge (under Project/File Relations) and declare ## Dependencies: OmniSearch in their .toc, accessing it via LibStub("LibOmniSearch-1.0").



