Skip to content

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

Reset the FT indexes

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.

Clear the old FT indexes

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" 
      }
    }
  }
}'

Re-populate the clean index

Log into the app and run Admin -> reset FT indexes

Clear any duplicate ISSN/eISSN values

Do this by running

Admin -> Housekeeping

This is important to remove duplicate identifiers.