OmniSearch

An in-game search and filtering library featuring typo-tolerant fuzzy matching, smart bag and tooltip queries by item level or stats, Cyrillic text normalization, and a live search studio.
Median-of-5 strict Lua benchmarks (Tests/bench_vs_legacy.py) comparing OmniSearch (LibOmniSearch-1.0) against verbatim CustomSearch-1.0 v14 + ItemSearch-1.3 v15 and linear GetItemInfo + GameTooltip scanners across 10,000 and 50,000 items.

Median-of-5 strict Lua benchmarks (Tests/bench_vs_legacy.py) comparing OmniSearch (LibOmniSearch-1.0) against verbatim CustomSearch-1.0 v14 + ItemSearch-1.3 v15 and linear GetItemInfo + GameTooltip scanners across 10,000 and 50,000 items.

50,000-item indexed capabilities legacy substring scanners miss (0.082 ms numeric/gold pushdowns, Damerau-Levenshtein & Myers typos, FZF-v2 acronyms, Warbound wue filtering) plus 1.61x faster unindexed 200-slot bag scans.

50,000-item indexed capabilities legacy substring scanners miss (0.082 ms numeric/gold pushdowns, Damerau-Levenshtein & Myers typos, FZF-v2 acronyms, Warbound wue filtering) plus 1.61x faster unindexed 200-slot bag scans.

5.03x faster mixed-raid Cyrillic transliteration vs LibTranslit-1.0 v4, 17.74 ms max frame-sliced 50k coroutine indexing with 0 idle OnUpdate scripts, and 0/100 errors under Midnight 12.1.7 Secret-Value torture.

5.03x faster mixed-raid Cyrillic transliteration vs LibTranslit-1.0 v4, 17.74 ms max frame-sliced 50k coroutine indexing with 0 idle OnUpdate scripts, and 0/100 errors under Midnight 12.1.7 Secret-Value torture.

Full widescreen 4-column benchmark matrix across all 10 test suites, amortized index build vs stateless linear scan tradeoffs, and multi-flavor client support (Retail 12.x, WoW Forever 1.60.1, TBC, Classic Era, Wrath, Cata, Mists).

Full widescreen 4-column benchmark matrix across all 10 test suites, amortized index build vs stateless linear scan tradeoffs, and multi-flavor client support (Retail 12.x, WoW Forever 1.60.1, TBC, Classic Era, Wrath, Cata, Mists).

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 .zip or unpacked folder at fishingbuddyforever.com/Omnisearch to inspect exact unified diffs in-browser. Automatically swaps ItemSearch-1.3, LibItemSearch-1.2, CustomSearch-1.0, and LibTranslit-1.0 calls to OmniSearchBridge-1.0, preserves vendored Libs/, injects ## Dependencies: OmniSearch, and generates an optional OmniSearch_Indexes.lua async index & Spotlight blueprint.
  • Built-In v1.0.1+ 1-Line Drop-In API (CreateLegacyBridge / EmbedLegacySearch): Call local Search = LibStub("LibOmniSearch-1.0"):CreateLegacyBridge() (or :EmbedLegacySearch(MyAddon)) and your existing :Matches, :Compile, :Find, :Clean, :Compare, and :Transliterate calls immediately gain FZF-v2/Myers typo tolerance, cached C_TooltipInfo / wue Warbound filtering, and Midnight SecretGuard safety.
  • Offline Python CLI, In-Game /osrch convert & AI Coding Agent Skill: Run migrate_to_omnisearch.py --mode hybrid locally, click Addon Authors: 1-Click Converter inside /osrch (or run /osrch convert), or drop SKILL.md / MIGRATE_PROMPT.md into 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 bundle LibOmniSearch-1.0 files and must list standalone OmniSearch as a Required Dependency on CurseForge (under Project/File Relations) in addition to ## Dependencies: OmniSearch in 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:

ScenarioOmniSearchLegacy 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 via BuildAsync) for 0.08–18.8 ms searches (7.4x–928x faster than linear scans). CustomSearch-1.0 + ItemSearch-1.3 build 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), ExtractItemRecord extracts stats, equipment sets, and folded tokens cleanly in 8.15 ms (1,212.2 KB). Subsequent queries via CompileItemFilter hit the (loc, link, isBound) cache (9.13 ms across 2,000 evaluations vs 14.70 ms in ItemSearch-1.3).
  • Single-Pass Architecture & Fallbacks: Retail 12.x & WoW Forever 1.60.1 use zero-frame C_TooltipInfo and C++ C_EncodingUtil (OSS1C! CBOR+Deflate); Classic Era 1.15.9 / TBC 2.5.6 / Wrath fall back automatically to a single lazy-reused hidden OmniSearchHiddenScanTooltip frame and pure-Lua OSS1L! 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, and socket queries in under 1 ms per keystroke.
  • Auction House & Crafting Addons: Coroutine-sliced indexing via BuildAsync (with optional OmniFlow cooperative yielding) keeps huge 50,000+ item catalogs responsive with 0 idle OnUpdate handlers.
  • Unit, Nameplate & Localized EU/RU Addons: Drop-in Lib:Transliterate(str, mark) and Lib:Normalize(str, true) fold Latin diacritics, smart apostrophes (Kel'Thuzad → kelthuzad), and Cyrillic (Штормград → Shtormgrad), while FormatHighlighted inserts WoW |cff...|r color tags without splitting multi-byte UTF-8 continuation bytes.
  • Slash-Command & OmniUI VirtualTable Spotlight: Unified Lib:RegisterProvider / Lib:SearchSpotlight registry and 1-line Lib:BindVirtualTable(vt, idx) bridge for OmniUI.

Supported WoW Clients

Client FlavorTOC Interface(s)Native Engines Used
Retail / Midnight 12.x120107, 120105, 120100, 120005, 120001, 120000Zero-frame C_TooltipInfo, C_EncodingUtil (OSS1C!), SecretGuard
WoW Forever 1.60.116001Zero-frame C_TooltipInfo, C_EncodingUtil, C_GameRules + regional surnames
TBC Anniversary20506, 20505Lazy single-frame GameTooltip fallback + pure-Lua OSS1L! snapshots
Classic Era11509, 11508Lazy single-frame GameTooltip fallback + pure-Lua OSS1L! snapshots
Mists / Cata / Wrath Classic50504, 50503, 40402, 38002, 30405Multi-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 /osrch for 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").

OmniSearch Team

profile avatar
Owner
  • 1
    Followers
  • 8
    Projects
  • 86.3K
    Downloads

More from XyGoTView all

  • Fishing Buddy Forever project image

    Fishing Buddy Forever

    Fishing Buddy Forever - The actively maintained, modernized Fishing Buddy overhaul featuring double-click Easy Cast, smart auto-luring, one-click outfit swapping, and live catch tracking—updated fast for every patch.

    • 59.9K
    • December 4, 2026
  • OmniUI project image

    OmniUI

    Drop-in replacement for AceGUI, AceConfig, AceDBOptions, LibUIDropDownMenu & LibQTip: 100k+ row virtual tables/trees (9,090x fewer frames), O(1) reactive signals, Ctrl+F schemas, zero-taint menus, 0-frame OmniTip & Midnight SecretGuard.

    • 563
    • December 4, 2026
  • OmniBase project image

    OmniBase

    Drop-in replacement for AceDB-3.0 & LibDualSpec-1.0: -97.3% profile SavedVariables bloat (0ms logout strip), -82.6% sharded cold vaults, -99.8% compressed ID sets, sub-ms fuzzy search, 7D auto-profiles & 0 idle CPU.

    • 521
    • December 4, 2026
  • OmniSync project image

    OmniSync

    Zero-dependency player-to-player state syncing library & studio: CRDTs, 1-packet IBLT reconciliation, rateless Fountain multicast, Trickle suppression, Dead-Drops & BNet mesh.

    • 3.3K
    • December 3, 2026
  • Fishing Buddy Forever project image

    Fishing Buddy Forever

    Fishing Buddy Forever - The actively maintained, modernized Fishing Buddy overhaul featuring double-click Easy Cast, smart auto-luring, one-click outfit swapping, and live catch tracking—updated fast for every patch.

    • 59.9K
    • December 4, 2026
  • OmniUI project image

    OmniUI

    Drop-in replacement for AceGUI, AceConfig, AceDBOptions, LibUIDropDownMenu & LibQTip: 100k+ row virtual tables/trees (9,090x fewer frames), O(1) reactive signals, Ctrl+F schemas, zero-taint menus, 0-frame OmniTip & Midnight SecretGuard.

    • 563
    • December 4, 2026
  • OmniBase project image

    OmniBase

    Drop-in replacement for AceDB-3.0 & LibDualSpec-1.0: -97.3% profile SavedVariables bloat (0ms logout strip), -82.6% sharded cold vaults, -99.8% compressed ID sets, sub-ms fuzzy search, 7D auto-profiles & 0 idle CPU.

    • 521
    • December 4, 2026
  • OmniSync project image

    OmniSync

    Zero-dependency player-to-player state syncing library & studio: CRDTs, 1-packet IBLT reconciliation, rateless Fountain multicast, Trickle suppression, Dead-Drops & BNet mesh.

    • 3.3K
    • December 3, 2026