Getting Started

Install Oracle Trusted Answer Search, explore the demo brokerage sample, and create your first search space using the Wikimedia example.

Install Trusted Answer Search

Download the installation archive from the Oracle Trusted Answer Search downloads page. Extract the archive and follow the instructions in its README.md to install Trusted Answer Search.

After installation, record the Admin application and demo website URLs displayed by the installer. Use the demo website URL to continue with Explore the Demo Brokerage Sample.

Explore the Demo Brokerage Sample

After installation, explore the demo brokerage website using the demo website URL displayed by the installer.

  1. Open the demo brokerage website. Explore the search field and suggested questions.

    Demo brokerage home page

  2. Enter asset allocation. Search starts automatically after a brief pause in typing. You can also press Enter or select Search. Review the available reports.

    Search results for asset allocation

  3. Select Allocation Explorer. Explore the report and its asset allocation view.

    Allocation Explorer report

Create Your First Search Space

Create a search space for Wikimedia reports from scratch. In this walkthrough, you add a text search target, configure manual target value sets, test queries, and publish the draft.

Create a Search Space

  1. Sign in as a Search Administrator, such as TASADMIN. A Search Space Expert can maintain an assigned search space after an administrator creates it.

  2. Select Search Spaces in the left navigation. The table lists every search space that currently exists.

  3. Select Create Search Space to open the configuration drawer. Provide a Name such as WIKIMEDIA and complete the required fields. You can give the initial version a label, such as v1, to identify it later.

  4. Select Create. The new search space appears in the table with an initial draft version. Use this draft for the following steps.

Add a Search Target

Register the Total Page Views – All Projects report as a search target so users can find it with questions such as “Show monthly page views for all Wikimedia projects.”

Its URL contains two target inputs: :period controls the time window, and :frequency controls daily or monthly granularity. TAS resolves these inputs using the mapped target value sets and substitutes their values into the URL. For example, 2-year and monthly produce a URL for the report’s monthly page-view data over two years.

  1. Sign in to the Admin application with Search Administrator credentials. Note the global Search Space selector in the header.

  2. Open the Search Space dropdown and select wikimedia, then select a draft Search Space Version. Select Search Targets in the left navigation to load the catalog for that version.

  3. Select Create Target on the top-right of the page. Provide the general metadata first.
    • Search Target Title – Total Page Views - All Projects
    • Search Target Description – The target description should semantically describe what this target is about. This description is used during Trusted Answer Search retrieval and directly impacts search quality.

      Enter this description: This report shows overall pageview volume across all Wikimedia projects over time. It opens a time-series chart with a table view and supports changing the time window and daily or monthly granularity. It is useful for readers, analysts, and community members tracking overall demand for Wikimedia content.

    Search target title and description for the Wikimedia report

    Description of the illustration target-inputs-create-target.png

  4. In Step 2: Select Target Action, select URL and paste https://stats.wikimedia.org/#/all-projects/reading/total-page-views/normal|bar|:period|~total|:frequency into the URL field. The form detects the :period and :frequency placeholders and displays them as target inputs. Map them to the PERIOD and FREQUENCY Target Value Sets. If those sets do not exist in this search space, create them from the form as described in Add and Map Target Value Sets, then return to this procedure.

    URL action with detected frequency and period inputs before selecting target value sets

    Description of the illustration target-action-create-target.png

  5. Select Text Target as the target type. Under Add Sample Queries, supply realistic prompts that should retrieve this target. Each sample query must mirror the language your app’s end-users naturally use; specific scenarios and intent-driven phrasing guide semantic matching.

    Enter the following queries into the Sample Query box and select Add Sample Query after every entry. For example:

    • What is the daily pageview trend for all Wikimedia projects?
    • Show monthly page views for all Wikimedia projects.

    As you add them, the table beneath the input lists the saved queries.

  6. Select Create Search Target. The new “Total Page Views - All Projects” target appears in the wikimedia catalog.

    The search target does not appear in end-user search results until you publish the draft search space version. Publish the search space version after you finish making and reviewing the draft changes.

    Continue with Test Queries and Publish the Draft.

Add and Map Target Value Sets

Some reports require parameters before they can resolve to the required view. For example, the Wikimedia page-view target can use a time period and a frequency value to control the chart. Instead of creating separate search targets for each combination, use Target Inputs so Trusted Answer Search can substitute values from the user’s query into the action URL or SQL.

The “Total Page Views - All Projects” target uses the following URL template:

https://stats.wikimedia.org/#/all-projects/reading/total-page-views/normal|bar|:period|~total|:frequency

In this URL, :period and :frequency are target input placeholders. Each placeholder must be mapped to a Target Value Set so Trusted Answer Search can resolve values from natural-language queries.

  1. While creating the “Total Page Views - All Projects” Search Target, review its title and description before configuring the URL action. For this example, use:

    • Title: Total Page Views - All Projects
    • Description: This report shows overall pageview volume across all Wikimedia projects over time. It opens a time-series chart with a table view and supports changing the time window and daily or monthly granularity.
  2. Under Step 2: Select Target Action, select URL and paste the parameterized link. The form detects :frequency and :period and exposes both rows in the Target Inputs table beneath the URL.

  3. If a required value set does not yet exist, select Create New Target Set to open the Add Target Value Set dialog.

    For this example, create a manual Target Value Set for FREQUENCY.

    • Name: FREQUENCY
    • Description: Time bucket options that control the resolution of the trends

    Select Manual to enter the allowed values yourself. Enter daily in Value and select + Add.

    Enter monthly in Value. To recognize alternative wording, enter by month, month in Synonym(s), then select + Add.

    Set Default Value to monthly. This value is used when the query does not contain a matching frequency. Select Save.

    Manual FREQUENCY target value set with daily and monthly values and monthly as the default

    Description of the illustration target-value-set-manual-frequency.png

    This supports both sample queries in Add a Search Target. Create a manual PERIOD Target Value Set the same way. Add 2-year as a value and set it as the default for this example.

  4. Save the new value sets and select them from the Target Value Set dropdowns so frequency maps to FREQUENCY and period maps to PERIOD. The table shows which value set supplies each target input. Then complete the sample queries and create the Search Target as described in Add a Search Target.

With the mapping in place, a search query such as “Show monthly page views for all Wikimedia projects” can resolve :frequency to monthly and substitute that value into the target URL.

Test Queries

As a Search Space Expert, use Query Tester to test queries against your draft before publishing it. Check that TAS returns the expected search target and resolves its target inputs correctly.

  1. Select Query Tester in the Admin application’s left navigation.
  2. Select wikimedia as the Search Space and select the draft Search Space Version that contains your new target.
  3. Enter Show monthly page views for all Wikimedia projects. in the search field and press Enter.
  4. Check that Total Page Views - All Projects is returned. Under Target Inputs on its result card, verify that frequency is monthly and period is 2-year. The query does not specify a time period, so TAS uses the 2-year default configured in the PERIOD Target Value Set.

    Wikimedia Query Tester showing the monthly query and target inputs frequency monthly and period 2-year

    Description of the illustration query-tester-wikimedia.png

    The screenshot shows a populated Wikimedia search space with additional targets. Your results depend on the targets you have added.

  5. Repeat with What is the daily pageview trend for all Wikimedia projects?. Verify that frequency is daily and period remains 2-year, because this query also does not specify a time period.

If the target is missing or an input is incorrect, review the target description, sample queries, value set entries, and input mappings in the draft, then test again.

Publish the Draft

  1. Select Search Spaces, then select WIKIMEDIA to open Search Space Versions.
  2. In the version list on the left, locate the version you tested with the Draft status. Open the action menu (three dots) beside that version.

    Wikimedia Search Space Versions with the draft version action menu open and Publish available

    Description of the illustration search-space-publish-draft.png

  3. Select Publish from the menu.
  4. Confirm that the version’s status changes to Published.

The published version is available for end-user searches, subject to the search space’s visibility and access controls. For private spaces, a Search Administrator must explicitly grant each user access, including users who sign in through SSO. See Configure Search Space Visibility and Managing User Access.

For further configuration and administration, see Configure Search Spaces.

For authentication and integration with your own application, see Search Widgets.