Appearance
Simple search
Simple Search allows users to search for an exact word, word form, or phrase. The resulting documents from the search are displayed in the section below the search bar. Let’s explore the different functionalities of Simple Search.
Search for a word
This is a basic search where users can type a word and press the search button to retrieve documents. The search highlights the exact word entered in the documents.
Example:
Searching for the word klimat
in the Swedish party programs and election manifestos corpus.
Search example: klimat


Search for a word form
Instead of searching for an exact word, users can search for a word form (e.g., lemma or lemgram). When users start typing, the query is sent to the Karp API, which returns lemgrams for the input word. These lemgrams are displayed in a dropdown below the input field. Users can select one of the word forms and search for it.
Example:
Searching for the word form land (noun)
in the Swedish party programs and election manifestos corpus.
Search example: land (noun)
Search for an exact phrase or words in a phrase
Users can also search for a phrase instead of a single word or word form. To enable phrase search, users need to activate the toggle button located to the right of the search input field. This allows searching for an exact phrase or specific words within the phrase.
Example:
Searching for the phrase "klimat politiken"
in the Swedish party programs and election manifestos corpus.
Search example: "klimat politiken"


Click on the image to view it in full size
Technical details
The functionality behind Simple Search is powered by Elasticsearch, which ensures fast and accurate search results.