Basics of Elastisearch Flashcards Preview

Udemy: Elastisearch Masterclass > Basics of Elastisearch > Flashcards

Flashcards in Basics of Elastisearch Deck (27):
1

At it's core, Elastisearch is a:

Document oriented search engine

2

Options for documents in Elastisearch

Insert
Delete
Retrieve
Analyze
Search

3

The best analogy for a elastisearch is

the index section of a textbook

4

The basis of a elastisearch technology is built on top of

Apache Lucene

5

The underlying data structure for elastisearch is known as

Inverted Index

6

Inverted Index

Maps words to actual documents locations of where they occur

7

What kind of documents does elastisearch store?

JSON

8

The 4 parts of an elastisearch document

Field
Document
Type
Index

9

How elastisearch relates to an RDS

Field => Column
Document => Row
Type => Table
Index => Database

10

Type is

Like a table in an RDS

11

Index is

Like a database in an RDS

12

Inserting is AKA

Indexing. Putting data into an index.

13

PUT basic syntax

/index/type/id
id must be unique!

14

version in a document

The number of times it has been written to

15

Inserting/updating in a document with an existing index

Will REPLACE ALL the data and increment the version

16

Putting in an id that doesn't exist in a type or index will

return a found: false

17

HEAD request type

Will just return 200 for found or 404 for not found

18

T/F Documents in elastisearch are immutable

True. Updating will replace the whole thing.

19

To only update one part of a document

You can use a POST with a _update param: eg POST /vehicles/car/123/_update

Then wrap in doc
{
"doc": {
"key": "Value"
}
}

20

To delete a document

DELETE /index/type/id

21

Something to note with deleting and the amount of time

It marks it as found false, but it will eventually delete it as a background job

22

Can you delete a type?

No because it doesn't have an appropriate handler

23

Doing get on a index

Will return information on the structure of the documents inside for each type

24

Can you delete an index?

Yes

25

Two main parts of a get for a document

Settings and mappings
Mappings contains all the fields inside the document
Settings includes metadata

26

Getting all documents in an index and type query

GET business/_search

27

To query for something specific

GET /index/type/_search
{
"query": {
"term": { "key": "value" }
}
}