# Autocomplete

Return words matching a given prefix.

URL : /blacklab-server/<corpus-name>/autocomplete/<metadata-field-name>

URL : /blacklab-server/<corpus-name>/autocomplete/<annotated-field-name>/<annotation>

Method : GET

# Parameters

Parameter Description
term Prefix to find matches for.

# Success Response

Code : 200 OK

# Content examples

[
  "d",
  "dabenis",
  "daniel",
  "dankers",
  "dankerts",
  "david",
  "davids",
  "de",
  "debora",
  "december",
  "decker",
  "dekker",
  "delvos-stoel",
  "den",
  "dennis",
  "der",
  "deters",
  "devolt",
  "dies",
  "dill",
  "dimmenssen",
  "dina",
  "dionijsius",
  "dirck",
  "dirk",
  "dirksen",
  "dirksz",
  "dis",
  "dorothea",
  "dorsmans",
  "doude"
]

# Notes

This works for metadata fields, not for annotations on annotated fields. Might be added in the future if there's demand.

For a metadata field, if the field is tokenized, it will find individual words. If the field is untokenized, the whole field value will be returned.