Information retrieval system for class project:
Installation:
-
Installation is easy with Maven
-
Go to the root directory of the project, type the following command
mvn clean install
-
Maven will resolve all dependencies.
-
Edit the following line in yairs/pom.xml (the pom.xml in main directory) to give the configuration file path as argument
<mainClass>yairs.retrieval.BooleanRetriever</mainClass>
<args>
<arg>../conf/boolean.properties</arg>
</args>
<jvmArgs>
<jvmArg>-Xmx512m</jvmArg>
</jvmArgs>
-
Edit the configuration file, one example was given in conf/boolean.properties,read the comments there for details
-
To run the program, go to the "core" directory and use he maven launcher
mvn scala:run -Dlauncher="boolean"
-
Alternatively, you can also run the program in your IDE, if under IntelliJ, you can edit the run configuration to pass in the configuration file path
-
You can play around other options by looking at the main class of "core/src/main/scala/retrieval/BooleanRetriever.scala"