This returns the lexeme entries (although it searches in wordforms too by default).
Argument | Description | Example | Notes |
---|---|---|---|
s |
Search query | kiteb |
|
l |
Search in lemmas? | 0 or 1 (default) |
Mininum length 2 |
wf |
Search in wordforms? | 0 or 1 (default) |
Mininum length 3; prefix matching only |
g |
Search in gloss? | 0 or 1 (default) |
Mininum length 3 |
pos |
Part of speech | NOUN (see here) |
|
source |
Source | Ellul2013 |
|
pending |
Include pending entries? | 0 (default) or 1 |
|
page |
Page number | 1 (default), 2 , ... |
The results are paged. This works as follows:
query.page_size
results (currently 20). The page size does not change.results.length
.query.result_count
. Use this to decide if you need to fetch further pages: query.page * query.page_size >= query.result_count
page
parameter will give you an error (HTTP 400).results
field.Unlike /lexemes/search
, this command uses a special text index on the glosses to return results which are sorted based on text-closeness.
It also performs stemming and stop-word removal on your query.
If only searching by English gloss, this command will return better results.
For more flexibility and additional filtering, use the command above (with the g
flag).
Argument | Description | Example | Notes |
---|---|---|---|
s (required) |
Search query | find |
Should be in English |
Paging should work as above.
Load a lexeme from its ID.
Argument | Description | Example |
---|---|---|
:id (required) |
Lexeme ID | 5200a366e36f237975000f26 |
Load the wordforms for a particular lexeme.
Argument | Description | Example |
---|---|---|
:id (required) |
Lexeme ID | 5200a366e36f237975000f26 |
match |
Limit to surface forms matching substring | kom |
pending |
Include pending entries? | 0 (default) or 1 |
exclude_sources |
Exclude wordforms from given sources | Camilleri2013,Apertium2014 |
sort |
Sort wordforms | 0 or 1 (default) |
Load lexemes which are related to a given lexeme. Currently this only uses root information, but may be extended to include other relations. The results are sorted by part of speech and derived form, and will not include the original lexeme.
Argument | Description | Example |
---|---|---|
:id (required) |
Lexeme ID | 5200a366e36f237975000f26 |
Find matching words which vary in spelling (diacritics, character case) of the search term, from lemmas or wordforms:
Argument | Description | Example |
---|---|---|
s (required) |
Search query | Hareg |
Similar to lexemes/search
but also returns matching wordform info.
Argument | Description | Example |
---|---|---|
s (required) |
Surface form (regex) | ktibnie?hom |
Example:
Argument | Description | Example |
---|---|---|
s (required) |
Search query (regex) | k-t-b , s-r-v-j , ^b-.-[jw]$ |
c1 ,c2 ,c3 ,c4 |
Radicals at positions 1–4 (overrides s ) |
għ |
r |
Search in radicals? | 0 or 1 (default) |
l |
Search in lemma? | 0 or 1 (default) |
g |
Search in gloss? | 0 or 1 (default) |
t |
Root type | strong , geminated , weak-initial , weak-medial , weak-final , irregular |
page |
Page number | 1 (default), 2 , ... |
All radicals should be in lower case.
A dot .
will also match the digraph għ
.
The results are paged.
Load a root from its radicals and variant.
Argument | Description | Example |
---|---|---|
:radicals (required) |
Root radicals | k-t-b , s-r-v-j |
:variant |
Root variant | 1 , 2 , ... |
Load lexemes with a given root. The results are sorted by part of speech and derived form.
Argument | Description | Example |
---|---|---|
:radicals (required) |
Root radicals | k-t-b , s-r-v-j |
:variant |
Root variant | 1 , 2 , ... |
List all sources (from the sources
collection).
Load a source from its key.
Argument | Description | Example |
---|---|---|
:key (required) |
Source key | Falzon2013 |
You can get English & Maltese names for all the field names and values:
Argument | Description | Example |
---|---|---|
lang |
Language | eng (default) or mlt |
Get counts of all entities in database. These commands take no parameters.
Get a random entry.