Prepare for Deployment

From DBSight Full-Text Search Engine/Platform Wiki

Table of contents

Prepare DBSight for different environments

Switch DBSight Properties file

Change from system properties

Modify your application server's starting script:

 java ....
 //Or on windows
 java"c:\data\dbsight" ...

Change from WEB-INF/web.xml

In your WEB-INF/web.xml, find the following setting:


To some new value like this:



DBSight will try to pick up the dbsight properties file location from first, then from the web.xml file.

Change Index Data Directory

Why moving?

Very often, with your data growing, you want to move the large index files out of the default WEB-INF/data directory. You can do so by following one of the approaches.

Export Index Configuration before moving

If you already created some search, you should export them before moving the data directory.

Change from system properties

Modify your file by one of the following:\\Temp\\data

This way, most of the files that change often will live outside of the war file. This would make it easy to deploy to application servers like Weblogic. All you need to do is to

  1. download and unzip the dbsight.war file
  2. modify the web.xml file
  3. re-package everything as a new war file

Then you can deploy the new war file to almost any application server.

And of course, you will need to create the data directory if it doesn't exist.

Note: Template Files still with the web app

The search results rendering template files, which you will create and probably modify, still lives together with the expanded war file.

So if you still want to modify the result templates, you will need to manually unzip the war file. After all your templates editing is done, you can create a war file yourself, and deploy to any application server.

Set JDBC connection properties

In file, you can also specify jdbc connection url, username and password, for the whole DBSight instance or for a specificy index.


# If you have several indexes, you can have their own jdbc settings by prepending the index name
# These will take precedence over the jdbc settings without the index name

This way, you don't need to tweak jdbc settings after uploading the DBSight index configuration file.

Be careful, because these jdbc values won't be visible to the administration UI. So it could work when you are testing the jdbc connections from the UI, but not when running the indexing process. This is one way of "security", but also one way of misleading.