All technologies

Data & Architecture

Search with OpenSearch that understands German

German texts are hard for search engines: long compound words, umlauts and many word forms. With OpenSearch or Elasticsearch, we split compound words, merge word forms and combine full text with filters and vectors. For smaller datasets, Meilisearch is a lean alternative.

OpenSearch is an open search and analytics platform that grew out of Elasticsearch and combines full text, filters and vectors in one index.

Data flow

How Search with OpenSearch fits into your processes

  1. Database
  2. Indexing
  3. OpenSearch
  4. Search API
  5. Interface
Changes from the database are indexed; the application queries OpenSearch via a dedicated search API.

Use cases

What we build with Search with OpenSearch

  • German language analysis

    Correctly find word stems, umlauts and compounds such as Mietvertrag (lease) or Vertragsende (contract end).

  • Facets and filters

    Narrow results by category, location, date or status, with result counts.

  • Typo tolerance

    Results even with typos and incomplete input.

  • Hybrid search

    Combine keywords and meaning, with vectors alongside the full-text index.

Typical projects

Why companies bring us in

  1. 01

    Find technical terms correctly

    Starting point
    Users search for "heating costs", the document says "heating cost statement", and the search finds nothing.
    Solution
    We split compound words using a dictionary, merge word forms and maintain synonyms.
    Result
    Compound terms and their parts are found, even in plural and other inflected forms.
  2. 02

    Catalog with facets

    Starting point
    A large inventory needs to be filterable by several attributes at once, with result counts per filter.
    Solution
    We model the attributes as keyword fields and calculate facets via aggregations.
    Result
    Users narrow down results step by step and see in advance how many results remain.
  3. 03

    Keyword and meaning

    Starting point
    Full-text search finds exact terms well, but paraphrased questions poorly.
    Solution
    We add vectors to the same index and combine both result lists into a hybrid search.
    Result
    Numbers and names still match exactly, while free-form wording finds results that match in meaning.

Approach

How we introduce Search with OpenSearch

  1. 1

    Collect search cases

    Record typical search queries and expected results.

  2. 2

    Index and analysis

    Define fields, analyzers, synonyms and weighting.

  3. 3

    Check against the source

    Reliably bring changes from the database into the index.

  4. 4

    Measure and refine

    Check result quality with test queries and adjust the ranking.

Result

What you get from us

  • Index mapping with German language analysis
  • Synonym and dictionary maintenance
  • Sync between database and index
  • Search API with facets, filters and permissions
  • Test set for measuring search quality
  • Operation with snapshots and monitoring
{
  "settings": { "analysis": {
    "filter": {
      "komposita": { "type": "hyphenation_decompounder",
        "hyphenation_patterns_path": "analysis/de_DR.xml",
        "word_list_path": "analysis/woerterbuch.txt",
        "only_longest_match": true },
      "stamm": { "type": "stemmer", "language": "light_german" }
    },
    "analyzer": { "deutsch": { "tokenizer": "standard",
      "filter": ["lowercase", "komposita", "german_normalization", "stamm"] } }
  } },
  "mappings": { "properties": {
    "titel": { "type": "text", "analyzer": "deutsch" } } }
}
An analyzer that splits compound words using a dictionary, normalizes umlauts and reduces words to their stem.

Quality

What we watch for with Search with OpenSearch

  1. 1

    Compound words

    Without splitting compound words, a German search misses many results.

  2. 2

    Update the index

    We make sure changes and deletions reliably reach the index.

  3. 3

    Permissions in the index

    Results are filtered by tenant and permission before they reach the interface.

  4. 4

    Reindex

    Mapping changes require a new index, which we switch over via aliases without downtime.

  5. 5

    Measure ranking

    We test ranking changes with fixed test queries instead of weighting by gut feeling.

Comparison

OpenSearch or Meilisearch?

OpenSearch

Use
Large datasets, complex queries
Language analysis
Fine-tunable, with dictionaries
Typos
Configurable via fuzzy queries
Analytics
Aggregations and dashboards
Operations
Cluster with multiple nodes

Meilisearch

Use
Fast search for manageable datasets
Language analysis
Sensible defaults, fewer knobs to turn
Typos
Built in by default
Analytics
Focused on search and facets
Operations
A lean service

Meilisearch is quick to set up and sufficient for many catalogs. OpenSearch pays off for large inventories and fine-grained language analysis.

Search with OpenSearch

Common questions

Tap a question.