Skip to content

Arbitrary "x-site" header behaviour for jina-search #1232

@ly000

Description

@ly000

Hey everyone.
i have an issue understanding the in-site search of jina.

running following search:

curl --location 'https://s.jina.ai/' \
--header 'Authorization: Bearer xxxx' \
--header 'Content-Type: application/json' \
--header 'X-Respond-With: no-content' \
--header 'X-Timeout: 60' \
--header 'Accept: application/json' \
--header 'X-No-Cache: true' \
--data '{
    "q": "Please find the latest news about technological developments of the small startup Lilium"
}'

results in this response.

{
    "code": 200,
    "status": 20000,
    "data": [
        {
            "title": "Lilium News and Updates - Newsroom and Media Kit",
            "url": "https://lilium.com/news",
            "description": "05.12.2024 - Media Release. Lilium GmbH reports continuing momentum on the Lilium Jet commercial and test program, as KPMG-driven M&A process continues.",
            "content": "",
            "usage": {
                "tokens": 1000
            }
        },
        {
            "title": "Technology of the now-defunct electric aircraft startup Lilium has ...",
            "url": "https://www.techi.com/archer-acquires-lilium-patents-electric-aircraft-future/",
            "description": "Archer Aviation acquires Lilium's patents for €18 million, gaining access to key technologies in electric flight.",
            "date": "Oct 17, 2025",
            "content": "",
            "usage": {
                "tokens": 1000
            }
        },
        {
            "title": "Defunct electric aircraft startup Lilium's tech lives on over at Archer",
            "url": "https://techcrunch.com/2025/10/16/defunct-electric-aircraft-startup-liliums-tech-lives-on-over-at-archer/",
            "description": "Lilium, which was founded in 2015, was developing a vertical take-off and landing aircraft with speeds of up to 100 km/h. The company raised ...",
            "date": "Oct 16, 2025",
            "content": "",
            "usage": {
                "tokens": 1000
            }
        },
        {
            "title": "Archer Snags Lilium's Tech in $21M Patent Acquisition",
            "url": "https://www.techbuzz.ai/articles/archer-snags-lilium-s-tech-in-21m-patent-acquisition",
            "description": "Archer Aviation won a competitive bid to acquire all 300 of Lilium's patent assets for €18 million ($21 million).",
            "date": "Oct 17, 2025",
            "content": "",
            "usage": {
                "tokens": 1000
            }
        },
        {
            "title": "Inside the advanced air mobility market - YouTube",
            "url": "https://www.youtube.com/watch?v=jR14XgJaEmc",
            "description": "Welcome to FlightGlobal Focus, your new essential podcast for trusted aviation insight. We publish new episodes twice weekly: join us on ...",
            "date": "Nov 2, 2025",
            "content": "",
            "usage": {
                "tokens": 1000
            }
        },
        {
            "title": "Lilium Phoenix (defunct) - eVTOL.news",
            "url": "https://evtol.news/lilium/",
            "description": "Article: Lilium unveils five-seater air taxi prototype after a successful maiden flight for its latest jet, Tech Crunch, May 15, 2019; Video: The Lilium Jet ...",
            "content": "",
            "usage": {
                "tokens": 1000
            }
        },
        {
            "title": "We've acquired Lilium's patent portfolio, which includes - Facebook",
            "url": "https://www.facebook.com/FlyArcher/posts/weve-acquired-liliums-patent-portfolio-which-includes-300-patents-this-portfolio/1134665565434932/",
            "description": "This portfolio covers innovations in eVTOL technology including ducted fans, propeller systems, high-voltage systems, battery management, ...",
            "date": "Oct 15, 2025",
            "content": "",
            "usage": {
                "tokens": 1000
            }
        },
        {
            "title": "Lilium Air Mobility - Lilium",
            "url": "https://lilium.com/",
            "description": "Lilium is developing sustainable, high-speed air mobility through its electric vertical take-off and landing aircraft, vertiports and digital service.",
            "content": "",
            "usage": {
                "tokens": 1000
            }
        },
        {
            "title": "LILM News Today | Why did Lilium stock go up today? - MarketBeat",
            "url": "https://www.marketbeat.com/stocks/NASDAQ/LILM/news/",
            "description": "What's going on at Lilium (NASDAQ:LILM)? Read today's LILM news from trusted media outlets at MarketBeat.",
            "content": "",
            "usage": {
                "tokens": 1000
            }
        },
        {
            "title": "Lilium N.V. (LILMF) Latest Stock News - Seeking Alpha",
            "url": "https://seekingalpha.com/symbol/LILMF/news",
            "description": "Air taxi startup Lilium finds a buyer, stock skyrockets 268% · Wed, Dec. 25, 2024 ; Lilium launches M&A process with KPMG · Tue, Nov. 05, 2024 ; Lilium N.V. ...",
            "content": "",
            "usage": {
                "tokens": 1000
            }
        }
    ],
    "meta": {
        "usage": {
            "tokens": 10000
        }
    }
}

i assumed, that i can search a particular domain by setting the x-site header via:

curl --location 'https://s.jina.ai/' \
--header 'Authorization: Bearer xxxx' \
--header 'Content-Type: application/json' \
--header 'X-Respond-With: no-content' \
--header 'X-Timeout: 60' \
--header 'Accept: application/json' \
--header 'X-No-Cache: true' \
--header 'X-Site: https://www.lilium.com' \
--data '{
    "q": "Please find the latest news about technological developments of the small startup Lilium"
}'

however this does not work:

{
    "data": null,
    "code": 422,
    "name": "AssertionFailureError",
    "status": 42206,
    "message": "No search results available for query Please find the latest news about technological developments of the small startup Lilium site:https://www.lilium.com",
    "readableMessage": "AssertionFailureError: No search results available for query Please find the latest news about technological developments of the small startup Lilium site:https://www.lilium.com"
}

How should the x-site actually behave?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions