Archived / Obsolete Documentation

Documentation in this space is no longer accurate.
Looking for official DSpace documentation? See all documentation

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

For read/manage Lucene indexes you can use the friendly tool Luke.

DSpace use his own Analyzer so if you want check query transformation you need to tell Luke where it can be found.
Now you need to run Luke adding to the classpath dspace-api-XXX.jar file (NOTE that for DSpace < 1.5 you need to use dspace.jar)

you can use this command

java -classpath lukeall-0.7.1.jar;/path/to/dspace/lib/dspace-api-XXX.jar org.getopt.luke.Luke

If everything is ok, after running you need only to select the index dir (search.dir property in your dspace.cfg) and you will be able to use DSAnalyzer or your own Analyzer in Analyzer tool and query builder.
Check the screenshots to the end of page to see how configure Luke for use default DSpace index and your Analyzer.

Build your own DSpace Analyzer

If you want build DSpace Analyzer without (re)build all DSpace API you need to make a jar file with

org.dspace.search.DSAnalyzer
org.dspace.search.DSTokenizer

and any others custom filter that you have added.

In Eclipse you can do using the export tools (select the files belove, right click Export... Jar file), actually you need to mark the "export class files with compile warnings" because DSAnalyzer use Raw type (Set).

Finally you can use your own Analyzer running Luke with the follow command

java -classpath lukeall-0.7.1.jar;/path/to/youranalyzer/youranalyzer.jar org.getopt.luke.Luke

How-to configure Luke for use your DSpace setting

  • No labels