Type Ahead list of common terms - noorzaman/emp GitHub Wiki

Commonly used terms for meeting spaces

Type Ahead component is used to assist the user for adding attributes to the meeting space. The attributes will be built in time as users type in more attributes. However, to start with, we will add a list of common terms used for meeting spaces. This list will be part of the initial setup and inserted into Elasticsearch.

Setup address

addr=https://search-emp-cixk22lczi5yrt4zd2dhswnltm.us-east-1.es.amazonaws.com

Insert tags

curl -X POST "$addr/tags/fixed/tags_list" -H 'Content-Type: application/json' -d '
{
"space": {
"added_ts": "20180304",
"name": "Fixed Tags",
"image_key": "[email protected]",
"image": "null",
"updated_ts": "20180304",
"attributes": [
"Whiteboard", 
"TV",
"Projector",
"Board Room",
"Restaurant",
"Cafe",
"Table",
"Chair",
"Couch",
"Desk",
"Chalkboard",
"Phone",
"Speakers",
"Outlets",
"Smartboard",
"Microphone",
"Lecturn",
"Auditorium",
"Classroom",
"Boardroom",
"Theater",
"Kitchenette",
"Hallway",
"Lounge",
"Bar",
"Indoor",
"Outdoor",
"Flip Chart",
"WiFi"
],
"capacity": 0,
"themes": "FixedTags",
"description": "Fixed common use tags for meeting spaces"
}
}'

Retrieve the indexes

curl -X GET "$addr/tags/fixed/tags_list"

-- Response

{"_index":"tags","_type":"fixed","_id":"tags_list","_version":25,"found":true,"_source":
{"space":{"added_ts":"20180304","name":"Fixed Tags","image_key":"[email protected]","image":"null","updated_ts":"20180304","attributes":["Whiteboard","TV","Projector","Board Room","Restaurant","Cafe","Table","Chair","Couch","Desk","Chalkboard","Phone","Speakers","Outlets","Smartboard","Microphone","Lecturn","Auditorium","Classroom","Boardroom","Theater","Kitchenette","Hallway","Lounge","Bar","Indoor","Outdoor","Flip Chart","WiFi"],"capacity":0,"themes":"FixedTags","description":"Fixed common use tags for meeting spaces"}}
}
⚠️ **GitHub.com Fallback** ⚠️