...
- Token (or term) - the single entry in the index, which is the result of tokenization and analyzing of the string
- For text fields (e.g. title, or sentences), each word or stem of the word is token.
- For keyword fields (e.g. barcode or other identifiers) it is whole value is token. Or
- Field - JSON field in instance (or holding or item), which is idexed as field in elastic document. Every field can have no value, single value or array of values.
- Elastic document - json string with fields, which is stored in elastic. For each field in Elastic there is a mapping
- Mapping - metadata how to index the value of the field. Contains inforamtion about tokenizer, analyzer, etc.
Efficiency level | |||
LevelRank | Elastic | Postgre | Description |
---|---|---|---|
1 | |||
2 | |||
3 | |||
4 | |||
5 |
Use cases that will not be effective in Elastic
Function | Efficiency levelrank | Indexed instance data | Search input text | Reference link |
---|---|---|---|---|
Full text search for terms with stemming and stop-word filtering | { "title": "The Lord of the Rings", ...} | title = Lords of the Ring | ||
Keyword searh (aka exact match). | {"barcode" : "12345678", ... } | barcode = 12345678 | ||
Full text Search for terms with over all text fields and exact match for all keyword fields. | { "title": "The Lord of the Rings", "publicNote" : "silver covering", "barcode" : "12345678" ... } | Lord of the Ring silver covers or Lord of the Ring 12345678 | ||
Range filter | ||||
Autocomplete |
...
Use cases that will not be effective in Elastic
Efficiency levelrank | Summary | Details | Example | Reference link |
---|---|---|---|---|
Terms that contains | wildcard search | https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html or maybe https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html | ||
...