mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
425 lines
11 KiB
Markdown
425 lines
11 KiB
Markdown
# ELASTICSEARCH
|
|
|
|
## Projects
|
|
|
|
http://localhost:9200/fablab/_mapping?pretty
|
|
|
|
{
|
|
"fablab" : {
|
|
"mappings" : {
|
|
"projects" : {
|
|
"dynamic" : "true",
|
|
"properties" : {
|
|
"author_id" : {
|
|
"type" : "long"
|
|
},
|
|
"component_ids" : {
|
|
"type" : "long"
|
|
},
|
|
"created_at" : {
|
|
"type" : "date",
|
|
"format" : "dateOptionalTime"
|
|
},
|
|
"description" : {
|
|
"type" : "string",
|
|
"analyzer" : "french"
|
|
},
|
|
"id" : {
|
|
"type" : "long"
|
|
},
|
|
"machine_ids" : {
|
|
"type" : "long"
|
|
},
|
|
"name" : {
|
|
"type" : "string",
|
|
"analyzer" : "french"
|
|
},
|
|
"project_steps" : {
|
|
"properties" : {
|
|
"description" : {
|
|
"type" : "string",
|
|
"analyzer" : "french"
|
|
},
|
|
"title" : {
|
|
"type" : "string",
|
|
"analyzer" : "french"
|
|
}
|
|
}
|
|
},
|
|
"state" : {
|
|
"type" : "string",
|
|
"analyzer" : "simple"
|
|
},
|
|
"tags" : {
|
|
"type" : "string",
|
|
"analyzer" : "french"
|
|
},
|
|
"theme_ids" : {
|
|
"type" : "long"
|
|
},
|
|
"updated_at" : {
|
|
"type" : "date",
|
|
"format" : "dateOptionalTime"
|
|
},
|
|
"user_ids" : {
|
|
"type" : "long"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
## Statistics
|
|
|
|
http://localhost:9200/stats/_mapping?pretty
|
|
|
|
{
|
|
"stats" : {
|
|
"mappings" : {
|
|
"machine" : {
|
|
"properties" : {
|
|
"age" : {
|
|
"type" : "long"
|
|
},
|
|
"ca" : {
|
|
"type" : "double"
|
|
},
|
|
"date" : {
|
|
"type" : "date",
|
|
"format" : "dateOptionalTime"
|
|
},
|
|
"gender" : {
|
|
"type" : "string"
|
|
},
|
|
"group" : {
|
|
"type" : "string"
|
|
},
|
|
"machineId" : {
|
|
"type" : "long"
|
|
},
|
|
"name" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"reservationId" : {
|
|
"type" : "long"
|
|
},
|
|
"stat" : {
|
|
"type" : "long"
|
|
},
|
|
"subType" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"type" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"userId" : {
|
|
"type" : "long"
|
|
}
|
|
}
|
|
},
|
|
"project" : {
|
|
"properties" : {
|
|
"age" : {
|
|
"type" : "long"
|
|
},
|
|
"components" : {
|
|
"properties" : {
|
|
"id" : {
|
|
"type" : "long"
|
|
},
|
|
"name" : {
|
|
"type" : "string"
|
|
}
|
|
}
|
|
},
|
|
"date" : {
|
|
"type" : "date",
|
|
"format" : "dateOptionalTime"
|
|
},
|
|
"gender" : {
|
|
"type" : "string"
|
|
},
|
|
"group" : {
|
|
"type" : "string"
|
|
},
|
|
"licence" : {
|
|
"type" : "object"
|
|
},
|
|
"machines" : {
|
|
"properties" : {
|
|
"id" : {
|
|
"type" : "long"
|
|
},
|
|
"name" : {
|
|
"type" : "string"
|
|
}
|
|
}
|
|
},
|
|
"name" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"projectId" : {
|
|
"type" : "long"
|
|
},
|
|
"stat" : {
|
|
"type" : "long"
|
|
},
|
|
"subType" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"themes" : {
|
|
"properties" : {
|
|
"id" : {
|
|
"type" : "long"
|
|
},
|
|
"name" : {
|
|
"type" : "string"
|
|
}
|
|
}
|
|
},
|
|
"type" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"userId" : {
|
|
"type" : "long"
|
|
},
|
|
"users" : {
|
|
"type" : "long"
|
|
}
|
|
}
|
|
},
|
|
"training" : {
|
|
"properties" : {
|
|
"age" : {
|
|
"type" : "long"
|
|
},
|
|
"ca" : {
|
|
"type" : "double"
|
|
},
|
|
"date" : {
|
|
"type" : "date",
|
|
"format" : "dateOptionalTime"
|
|
},
|
|
"gender" : {
|
|
"type" : "string"
|
|
},
|
|
"group" : {
|
|
"type" : "string"
|
|
},
|
|
"name" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"reservationId" : {
|
|
"type" : "long"
|
|
},
|
|
"stat" : {
|
|
"type" : "long"
|
|
},
|
|
"subType" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"trainingDate" : {
|
|
"type" : "date",
|
|
"format" : "dateOptionalTime"
|
|
},
|
|
"trainingId" : {
|
|
"type" : "long"
|
|
},
|
|
"type" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"userId" : {
|
|
"type" : "long"
|
|
}
|
|
}
|
|
},
|
|
"subscription" : {
|
|
"properties" : {
|
|
"age" : {
|
|
"type" : "long"
|
|
},
|
|
"ca" : {
|
|
"type" : "double"
|
|
},
|
|
"date" : {
|
|
"type" : "date",
|
|
"format" : "dateOptionalTime"
|
|
},
|
|
"gender" : {
|
|
"type" : "string"
|
|
},
|
|
"group" : {
|
|
"type" : "string"
|
|
},
|
|
"groupName" : {
|
|
"type" : "string"
|
|
},
|
|
"invoiceItemId" : {
|
|
"type" : "long"
|
|
},
|
|
"name" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"planId" : {
|
|
"type" : "long"
|
|
},
|
|
"stat" : {
|
|
"type" : "long"
|
|
},
|
|
"subType" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"subscriptionId" : {
|
|
"type" : "long"
|
|
},
|
|
"type" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"userId" : {
|
|
"type" : "long"
|
|
}
|
|
}
|
|
},
|
|
"user" : {
|
|
"properties" : {
|
|
"age" : {
|
|
"type" : "long"
|
|
},
|
|
"date" : {
|
|
"type" : "date",
|
|
"format" : "dateOptionalTime"
|
|
},
|
|
"gender" : {
|
|
"type" : "string"
|
|
},
|
|
"group" : {
|
|
"type" : "string"
|
|
},
|
|
"name" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"stat" : {
|
|
"type" : "long"
|
|
},
|
|
"subType" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"type" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"userId" : {
|
|
"type" : "long"
|
|
}
|
|
}
|
|
},
|
|
"account" : {
|
|
"properties" : {
|
|
"age" : {
|
|
"type" : "long"
|
|
},
|
|
"date" : {
|
|
"type" : "date",
|
|
"format" : "dateOptionalTime"
|
|
},
|
|
"gender" : {
|
|
"type" : "string"
|
|
},
|
|
"group" : {
|
|
"type" : "string"
|
|
},
|
|
"name" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"stat" : {
|
|
"type" : "long"
|
|
},
|
|
"subType" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"type" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"userId" : {
|
|
"type" : "long"
|
|
}
|
|
}
|
|
},
|
|
"event" : {
|
|
"properties" : {
|
|
"age" : {
|
|
"type" : "long"
|
|
},
|
|
"ca" : {
|
|
"type" : "double"
|
|
},
|
|
"date" : {
|
|
"type" : "date",
|
|
"format" : "dateOptionalTime"
|
|
},
|
|
"eventDate" : {
|
|
"type" : "date",
|
|
"format" : "dateOptionalTime"
|
|
},
|
|
"eventId" : {
|
|
"type" : "long"
|
|
},
|
|
"gender" : {
|
|
"type" : "string"
|
|
},
|
|
"group" : {
|
|
"type" : "string"
|
|
},
|
|
"name" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"reservationId" : {
|
|
"type" : "long"
|
|
},
|
|
"stat" : {
|
|
"type" : "long"
|
|
},
|
|
"subType" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"type" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"userId" : {
|
|
"type" : "long"
|
|
},
|
|
"ageRange" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
},
|
|
"eventTheme" : {
|
|
"type" : "string",
|
|
"index" : "not_analyzed"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|