How do I use SearchBlox with Oracle 10g Release 2?

Using SearchBlox with Oracle 10g Release 2
  1. Deploy searchblox.war by using the "Deploy WAR file" functionality in the Oracle Enterprise Manager. Set "Application name" to searchblox and "Map to URL" to /searchblox.
  2. Check if SearchBlox has been deployed tot he directory %OracleASHOME%\j2ee\home\applications\searchblox .
  3. Edit web.xml located in %OracleAS_HOME%\j2ee\home\applications\searchblox\searchblox\WEB-INF so that the file looks like this (the changes are marked in bold).

  4. Edit jazn-data.xml located in %OracleAS_HOME%\j2ee\home\application-deployments\searchblox so that the file looks like this:

    jazn-data.xml
    <?xml version=”1.0” encoding=”UTF-8” standalone=’yes’?>
    <!DOCTYPE jazn-data PUBLIC “JAZN-XML Data” “http://xmlns.oracle.
    com/ias/dtds/jazn-data.dtd”>
    <jazn-data>
    <!-- JAZN Realm Data -->
    <jazn-realm>
    <realm>
    <name>jazn.com</name>
    <users>
    <user>
    <name>SearchBlox</name>
    </user>
    </users>
    <roles>
    <role>
    <name>AdminRole</name>
    <members>
    <member>
    <type>user</type>
    <name>SearchBlox</name>
    <member>
    </members>
    </role>
    </roles>
    </realm>
    </jazn-realm>
    <!-- JAZN Policy Data -->
    <jazn-policy>
    </jazn-policy>
    <!-- Permission Class Data -->
    <jazn-permission-classes>
    </jazn-permission-classes>
    <!-- Principal Class Data -->
    <jazn-principal-classes>
    </jazn-principal-classes>
    <!-- Login Module Data -->
    <jazn-loginconἀg>
    </jazn-loginconἀg>
    </jazn-data>
  5. Edit orion-application.xml located in %OracleAS_HOME%\j2ee\home\application-deployments\searchblox so that the file looks like this:

    orion-application.xml
    <?xml version=”1.0”?>
    <!DOCTYPE orion-application PUBLIC “-//ORACLE//DTD OC4J
    Application runtime 9.04//EN” “http://xmlns.oracle.com/ias/dtds/
    orion-application-9_04.dtd”>
    <orion-application deployment-version=”10.1.2.0.0” defaultdata-
    source=”jdbc/OracleDS” treat-zero-as-null=”true”>
    <web-module id=”searchblox” path=”searchblox.war” />
    <persistence path=”persistence” />
    <security-role-mapping name=”Admin”>
    <group name=”AdminRole” />
    </security-role-mapping>
    <!--principals path=”principals.xml” /-->
    <jazn provider=”XML” location=”jazn-data.xml” />
    <log>
    <file path=”application.log” />
    </log>
    <namespace-access>
    <read-access>
    <namespace-resource root=””>
    <security-role-mapping>
    <group name=”jazn.com/administrators” />
    </security-role-mapping>
    </namespace-resource>
    </read-access>
    <write-access>
    <namespace-resource root=””>
    <security-role-mapping>
    <group name=”jazn.com/administrators” />
    </security-role-mapping>
    </namespace-resource>
    </write-access>
    </namespace-access>
    </orion-application>
  6. Shutdown and restart OracleAS.
  7. Go to http://yourhost/searchblox/admin/main.jsp and log in using usernameadmin | passwordadmin.
  8. Go to the Collections tab and click on Add Collection to create a new collection
  9. 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.
  10. Go to the Root sub-tab, and type in RootURL / Filepath and click OK.
  11. Go to the Indexer sub-tab and click the Index button to start indexing.
  12. Click on the DashBoard sub-tab under collections to view indexing status.
  13. Go to http://yourhost/searchblox/search.jsp to start searching.
Have more questions? Submit a request

Comments