Skip to content

02 Project Journey

Anurag Prasad edited this page Nov 29, 2026 · 1 revision

2. Project Journey & Experiments

A chronological account of what was tried, what failed, why, and what each step taught. Numbers are measured project results unless marked otherwise.

2.1 Timeline at a glance

timeline
    title Experiment progression
    Stage 1 : DDGS collector : page 1 = 10 results : page 2 = HTTP 202 interstitial
    Stage 2 : Provider comparison : DDGS / DDG Lite / Instant Answer / SearXNG
    Stage 3 : SearXNG 5-page run : 70 raw / 67 unique : 3 duplicates
    Stage 4 : SearXNG-only production collector : multi-query, matrix, retries, aggregation, write-back
    Stage 5 : Deep pagination run : 15 result pages / 216 unique : CAPTCHA on page 16
Loading

Pipeline Figure 2.1 · The production-oriented pipeline implemented or targeted by the SearXNG extension (project diagram).

2.2 Stage 1 — DDGS and the first diagnosis

The first collector used DDGS. Page 1 returned ten results; page 2 hit HTTP 202 and the library surfaced a generic no results exception.

Lesson: an interstitial/challenge response must never be interpreted as a genuinely empty page. A separate write-back bug (a log modified after staging but before pull --rebase) led to the rule fetch/rebase first, stage final run files last.

2.3 Stage 2 — Four providers, one query

Query: machine learning research papers filetype:pdf (details in 12).

Provider Pages asked Outcome Interpretation
DDGS 5 1 usable page (10 results); page 2 → HTTP 202 Pagination unproven past page 1
DuckDuckGo Lite 5 HTTP 202; 0 results Parser correctness not established
DuckDuckGo Instant Answer API 1 HTTP 202; 0 data Not a ranked-SERP API; supplementary only
SearXNG + DuckDuckGo 5 5 × HTTP 200; 70 raw, 67 unique First successful multi-page run

Provider comparison Figure 2.2 · Unique usable results per interface. Data: project report.

2.4 Stage 3 — SearXNG, five pages

SearXNG returned 10 records on page 1 and 15 on every later page → 70 raw / 67 unique (3 duplicates), all attributed to DuckDuckGo. Feasibility was shown; reliability at depth was not.

2.5 Stage 4 — The production-oriented collector

A SearXNG-only path was added while keeping historical provider experiments:

  • manual multi-query input (up to 20 queries; optional per-line targets),
  • query × repeat matrix with controlled concurrency and fail-fast disabled,
  • pagination, result validation, deduplication, raw + normalised output,
  • aggregation, archival, and one write-back stage,
  • no silent switch to another upstream engine.

The v3 extension reported 50 local tests passing before live validation.

2.6 Stage 5 — The deep pagination run

Settings: same query, region in-en, target 500 unique, max 50 pages, 3 s delay, 1 repeat, SearXNG 2026.11.1-9ded3bec1.

Result Value
Result-bearing pages 15
HTTP-200 page attempts 16
Raw / unique / duplicate 219 / 216 / 3
Target achieved 43.2 %
Collection elapsed ≈ 50 s · full workflow 74 s

Target progress Figure 2.3 · Healthy pipeline, partial collection.

The write-back produced commits 2672efb (batch archive) and 6929fdc (log). The workflow still exited non-zero because status was PARTIAL. This motivated the two-axis status model in 13.

2.7 What the journey established

  1. A CI runner can host a short-lived search service and drive it through its API.
  2. Provider failure modes differ and must be classified, not flattened.
  3. Partial results are valuable and must survive later failure.
  4. Operational success and collection completeness are different questions.
  5. Depth (20/50/100 pages), repeatability, parallel load and multi-query live runs remain unproven (see 21).

❓ Check your understanding

Q1. Why did the DDGS experiment fail to prove pagination?

Page 2 returned HTTP 202 (an interstitial) and the library reported "no results". Only page 1 was usable, so nothing could be said about depth.

Q2. With 219 raw and 216 unique records, what is the duplicate rate?

$$\text{dup rate}=\frac{219-216}{219}=\frac{3}{219}\approx 1.4%$$

Q3. How is "43.2 %" derived?

$$\frac{216}{500}=0.432=43.2%$$ of the unique-result target.

Q4. Why exit non-zero if everything was archived and pushed?

The collection status was PARTIAL (target unmet). The lesson: report pipeline health and target completeness separately.

← Prev 1. Goals · Next → 3. Anatomy of a Search Engine

Clone this wiki locally