Skip to main content

Tip: DSpace on Windows XP: A Batch File for Compilation (or Recompilation) of the MediaFilterManager Full-text Index

For DSpace Users in Windows Platform:

If you haven't already known, here's a workaround I discovered today after spending 1-2 hours trying to enable the full-text indexing feature of the DSpace Digital Library software in Windows XP Professional SP2 on my laptop:

In Unix or Linux the "filter-media" shell script in [DSpace]/bin needs to be manually scheduled (cron) for daily update of the full-text database.

The Windows counterpart of the "filter-media" shell script is not provided in the DSpace distribution. With the environmental variable DSPACE_HOME set to C:\DSpace, a "filter-media.bat" batch file is written.

"filter-media.bat" can be manually run periodically or scheduled to be run automatically by Windows (to further investigate how to schedule a task).


Essentially, "filter-media.bat" is simply a batch file that executes the class MediaFilterManager in the package org.dspace.app.mediafilter -- by using the batch-file command:

call %DSPACE_HOME%/bin/dsrun.bat org.dspace.app.mediafilter.MediaFilterManager

The class MediaFilterManager takes care of the full-text indexing process.

"filter-media.bat" can be manually run periodically or scheduled to be run automatically by Windows.

Note that

Tomcat needs to be *stopped* before this script is run,

otherwise the CFS index file in %DSPACE_HOME%\search cannot be updated (by replacing with the new index file generated by "filter-media") and
"java.io.IOException: Cannot delete _[something].cfs"
will be thrown by org.dspace.app.mediafilter.MediaFilterManager when it cannot replace the CFS index file.


Keywords: , , , , , ,

Comments

Popular posts from this blog

"Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine" Error on Windows 7 (64-bit) + Office 2010 (64-bit) + Visual Studio 2010

If you use (1) Windows 7 (64-bit), and (2) Office 2010 (64-bit), and  (3) Visual Studio 2010 to write an ASP.NET code to connect to Access or Excel database using the Microsoft.ACE.OLEDB.12.0 provider and consistently get the "Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine" error, try installing the 2007 Office System Driver: Data Connectivity Components , which is basically a Microsoft Access Database Engine 2007 Redistributable for Windows (32-bit) from http://www.microsoft.com/download/en/details.aspx?id=23734 Many forums suggested by Google Search suggest installing the Microsoft Access Database Engine 2010 Redistributable for Windows (32-bit, 64-bit) downloadable from http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=13255 but it wouldn't help because Visual Studio 2010 is a 32-bit application; what you need is a 32-bit Data Connectivity component. The 2010 download will not allow you to install i...

Tips: Mac OS X: Full ANSI Color Support in Terminal.app

I'm trying to switch my Java development platform from Windows XP to Mac OS X Tiger. Wondering how to colorize the Terminal screen, I spent some time googling. From the discussions at the end of this page: macosxhints.com - Add full ANSI color support to Terminal.app Here's a summary of how to enable it: With bash shell as default, simply add export TERM=xterm-color [I prefer this for Linux compatibility] or export TERM=dtterm in the ~/.profile (single-user) or /etc/profile (system-wide) Color terminal is enabled. Use ' ls -G ' (the -G enables color output) to test. Add alias ls='ls -G' in the profile file for convenience. Keywords: mac-os-x , unix , terminal , shell , tips

Lenovo IdeaPad S10: Annoying Fan Noise Fix and Heat Conduction Upgrade

Here's a repost of my message on the Lenovo.com board: I would like to thank Slash (on Lenovo.com board) so much for his messages on this thread: http://forums.lenovo.com/lnv/board/message?board.id=IdeaPad_Netbook&message.id=1183#M1183 I decide today (February 28, 2009) to walk into a Lenovo Service Center inside a computer mall in downtown Bangkok because I cannot tolerate the constant grinding noise from my S10 anymore. I bought my S10 in late November 2008 and I started to hear some grinding noise in late December 2008. I have been using the S10 as my primary computer both for work and for home. At work, this noise has embarrassed me many, many times. At home, I left the S10 with Vista in High Performance mode on overnight so that it can complete the maintenance tasks, e.g., HDD Defrag and Indexing, but the fan noise from high CPU temperature woke me up at 4:45 in the morning! I learned from Slash's picture http://i41.tinypic.com/25alq3d.jpg that Lenovo chose to use chea...