Skip to end of banner
Go to start of banner

Falcon - Elastic Search - Effective usage [DRAFT]

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Dictionary

  • 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
RankElasticPostgreDescription
1


2


3


4


5


Use cases that will not be effective in Elastic

FunctionEfficiency rankIndexed instance dataSearch input textReference 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

  • No labels