- Create a new directory named searchblox in the $OC4J-HOME/j2ee/home/applications folder.
- Extract searchblox.war into the /searchblox directory using, for example, the Java jar tool or a regular unzip command. For Windows, applications like WinZip work as well.
-
Edit the file $OC4J-HOME/j2ee/home/config/application.xml and add the following descriptor within the <orion-application> element:
<
web-module
id=”searchblox” path=”../../home/applications/searchblox”/>
-
Edit the fle $OC4J-HOME/j2ee/home/config/http-web-site.xml and add the following descriptor within the <web-site> element:
<
web-app
load-on-startup=”true” application=”default” name=”searchblox” root=”/searchblox”/>
Place a copy of the file $OC4J-HOME/j2ee/home/applications/searchblox/WEB-INF/lib/dom4j.jar in the directory $OC4J-HOME/j2ee/home/applib.
-
Edit the file $OC4J-HOME/j2ee/home/applications/searchblox/WEB-INF/web.xml so that the element <security-constraint> contains only the elements shown below:
<
security-constraint
>
<
web-resource-collection
>
<
web-resource-name
>Forbidden</
web-resource-name
>
<
url-pattern
>/conἀg.xml</
url-pattern
>
<
url-pattern
>/license.xml</
url-pattern
>
<
url-pattern
>/index/*</
url-pattern
>
<
url-pattern
>/docs/*</
url-pattern
>
<
url-pattern
>/ext/*</
url-pattern
>
<
url-pattern
>/publish/*</
url-pattern
>
<
url-pattern
>/stylesheets/*</
url-pattern
>
<
url-pattern
>/stopwords/*</
url-pattern
>
<
url-pattern
>/logs/*</
url-pattern
><
auth-constraint
/>
</
web-resource-collection
>
</
security-constraint
>
- Start OC4J.
- Go to http://yourhost/searchblox/admin/main.jsp and log in using username: admin | password: admin.
- Go to the Collections tab and click on Add Collection to create a new collection
- Choose whether it is an HTTP or FileSystem-based collection, assign a unique name and choose the language for this collection. And click Add to finish creating the collection.
- Go to the Root sub-tab, and type in RootURL / Filepath and click OK.
- Go to the Indexer sub-tab and click the Index button to start indexing.
- Click on the DashBoard sub-tab under collections to view indexing status.
- Go to http://yourhost/searchblox/search.jsp to start searching.
Have more questions? Submit a request
Comments