-
Notifications
You must be signed in to change notification settings - Fork 5
Actions after update
Ian Ibbotson edited this page Nov 14, 2016
·
2 revisions
After updating GOKb, there are a number of procedures that should be followed
If it's possible the database has changed (For example, consolidating duplicate titles) you should reset the full text indexes. This is VERY important as without it, the references in global search results will lead to a null pointer exception when clicking on search results.
Do this by running the reset_es.sh script commonly found in the scripts directory. contents are
curl -XDELETE 'http://localhost:9200/gokb'
curl -X PUT "localhost:9200/gokb" -d '{
"settings" : {}
}'
curl -X PUT "localhost:9200/gokb/component/_mapping" -d '{
"component" : {
"properties" : {
"name" : {
type : "multi_field",
fields : {
name : { type : "string", analyzer : "snowball" },
altname : { type : "string", analyzer : "snowball" }
}
},
"componentType" : {
type:"string",
index:"not_analyzed"
}
}
}
}'
Log into the app and run Admin -> reset FT indexes
Do this by running
Admin -> Housekeeping
This is important to remove duplicate identifiers.