Corpus Baudelaire - Search Results
This example shows search results from a full-text query for the term “chat” across a TEI-encoded corpus of Charles Baudelaire’s *Les Fleurs du Mal*, rendered as an HTML page with Bootstrap styling. The XQuery function `corpus:search` queries the `fleurs-du-mal` collection, filters out matches from the main corpus file, and uses the `ft:score` and `ft:extract` full-text functions to rank and highlight results with `<b>` tags. Each result is formatted as a paragraph listing the line number, the line with the search term bolded, and a link to the source document. The visualization demonstrates a search-results interface built with XQuery 3.1 and the RESTXQ annotation `%rest:path("/search")`, showing ranked matches with contextual snippets and document links.
AI-generated description