Commit f21754c7 by Adi Amir

update knowledgebase

parent 4a099941
......@@ -72,22 +72,22 @@ curl -XGET "http://localhost:9200/activityidx/activity/_search" -d'
POST /activityidx/activity/_search
{
"query": {
"bool": {
"must": [
{"match" : {"type" : "thing/traffic-lane"}},
{"match" : {"userId":"chicago/traffic-lane/380" }}
],
"filter": {
"range": {
"creationTime": {
"gte": 1514797422000,
"lte": 1515335771000
"bool": {
"must": [
{"match" : {"type" : "thing/traffic-lane"}},
{"match" : {"userId":"chicago/traffic-lane/380" }}
],
"filter": {
"range": {
"creationTime": {
"gte": 1514797422000,
"lte": 1515335771000
}
}
}
}
}
}
}
}
}
// query with prefix
......@@ -225,3 +225,22 @@ https://www.elastic.co/guide/en/elasticsearch/client/curator/4.2/index.html
POST /activityidx/activity/_search
{
"query": {
"bool": {
"must": [
{"match" : {"type" : "report/report/.*"}}
]
}
}
}
POST /activityidx/activity/_delete_by_query?conflicts=proceed
{
"query": {
"match" : {"type" : "report/report/.*"}
}
}
\ No newline at end of file
how to add entries to /etc/hosts on instance in cloud (ipgallery-mcz/safeyme)
1. ssh to relevant instance on cloud
2. nano /etc/hosts
3. add your entries to file & save
4. to make it persistant, edit /etc/cloud/templates/hosts.debian.tmpl
and add the same entries
ORIENT 3 MIGRATION:
1. to copy database with its data
=================================
- export the exisiting DB from orirentdb UI.
- enter the target orientdb docker and enter to console:
to enter the console: search in docker console.sh and run it.
2. to migrate to orientdb 3
[creating the new spatial property and index]
CREATE PROPERTY Entity.loc EMBEDDED OPoint
CREATE INDEX Entity.loc ON Entity(loc) SPATIAL ENGINE LUCENE
......@@ -10,3 +18,4 @@ update Entity SET location = {"@class": "OPoint","coordinates" : [-83.353095,42.
[delete duplicates by id - old database]
delete vertex Entity where id in (select id from (select from (select id,count(*) from Entity group by id) where count > 1))
......@@ -44,6 +44,8 @@ both components uses the same certificate located at:
passwd: giptmgrr
2. to renew the certificate run the following:
>docker exec volumenyc101_gitlab_1 /usr/bin/gitlab-ctl restart nginx
if still has an ssl problem, run:
>/usr/bin/certbot renew --quiet --renew-hook "docker exec volumenyc101_gitlab_1 /usr/bin/gitlab-ctl restart nginx"
check the browser again!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment