Fusion UI Search Tool

The Fusion UI Search Tool simulates the typical search application experience by running a user query over a collection using a specified query pipeline. This tool can display the query as well as the results, so that specific queries can be embedded in an application. It offers ways to customize the display of the Solr query results, but not the search parameters. You can also use it to compare the results of two query pipelines.

Query pipeline configuration is done through the Query Pipeline tool.

To access this tool, you can either click on the icon for the Fusion UI Search Tool, shown above, which is found on the main Fusion UI page, (the page displayed immediately after initial login and/or is reached by clicking on the Lucidworks Fusion label in the very top left-hand corner of the UI), or you can enter the URL http://<host:port>/search, where <host> and <port> point to your Fusion UI instance.

Search Tool Elements

The search tool provides drop-down selectors for the Collection to be searched and a text box for the search query. Next to these is a gear icon. The gear icon toggles a configuration panel which is used to select the search pipeline that will carry out the search and to specify the number of search results to display and how these results are displayed. See section Search Tool Options, below.

The space below the selectors is used to display documents and/or system messages.

The left-hand side is used to display facets. Facets will only be displayed if the query-pipeline response contains facets and according to the configuration settings (see below).

Search Results Display

The search results display panel displays the following:

  • The number of results found and the query time.

  • If the "Display Query URL" option is on, it will display the Solr query sent to the collection

  • A set of controls used to display the documents retrieved by the query (if any). The set of controls are, from left to right

    • a drop-down menu used to select the Solr response field to sort on

    • a drop-down menu used to select the sort order

    • controls to page through the search results

    • a control box allowing you to choose the number of results per page, either 10, 20, 50, or 100 results per page.

  • The documents themselves

Search Tool Options

The configuration panel toggles between three displays: "General", "Document", and "Facets".

The general search tool configuration options are:

  • Results Per-Page: The maximum amount of results that can be displayed for each query.

  • Display Solr Response Highlighting: If the Query Pipeline contains highlighting information, you can choose to show or hide it here. To add highlighting to a query pipeline, add the following two parameters to the set-query-params stage: hl=true and hl.fl=*.

  • Display Query URL: Display the full URL of the Query Pipeline search request.

The document configuration options are used to specify:

  • "Primary" - a field which will be treated as the document title. The value of this field is displayed in bold text. The field name is omitted.

  • "Secondary" - a field which will be treated as the document summary. The value of this field is displayed below the document title, in a smaller font. The field name is omitted.

  • "Additional" - fields which will be displayed if the "more fields" label is expanded. These will display as a set of field name:value pairs.

The facets configuration option allow you to choose which facets are displayed to the left of the documents. This only applies if the query pipeline has a facets stage.

Comparing Query pipelines

You can use the search tool to compare the search results from two different query pipelines.

  1. In the search panel, click the Compare button.

    A second search panel appears on the right, indicating that no pipeline is selected for comparison.

  2. In the right-hand search panel, select the query pipeline to compare.

    You can select a preconfigured pipeline from the dropdown list, or click the Duplicate button to create a copy of the current pipeline for this datasource.

    Now the search results are displayed as a diff:

    Search comparison

  3. Modify the pipeline on the right as desired.

    • You can block or boost results directly in the Search Panel.

    • To edit one of the query pipelines, click Home > Query Pipelines > <pipeline name>.