Skip to main content

Advanced Structured Search

Advanced Structured Search shows a search as a structured request that you can read and change. It opens from the code icon in the search bar. Use it when a search needs more than the search bar offers.

You do not need to write a structured request to use it. Describe what you are looking for to the Query Assistant, and it writes the request for you. Before you run it:

  • Check the request does what you asked. The assistant explains the search it set up. Read its answer, and check the request in the editor.
  • Check the count under the editor. It shows how many documents the request finds before you run it, so you can tell at once if it finds none, or far too many.
  • See the search in the search bar as a structured request, and change it
  • Describe a search to the Query Assistant, and have it write the request
  • See how many documents a request finds before you run it
  • Run the request and work with the results as you would in Search
  • Go back to an earlier conversation with the assistant
  • Preview a result, and go back to the search bar

Opening the editor​

To open Advanced Structured Search, open Search and click the code icon in the search bar. Its tooltip reads Advanced structured search editor and AI assistant. The page changes to three panels.

Advanced Structured Search with the Query Assistant on the left, the structured search request in the middle and the results on the right
Advanced Structured Search
PanelWhat it is for
Query Assistant (left)Describe the search in your own words. Your earlier conversations are listed beside it.
Structured document search request (JSON) (middle)The request that Search runs, with the buttons that run it, clear it and go back to the search bar.
Results (right)The documents the request found.

Query Assistant​

Describe the documents you want in Ask about your search… at the bottom of the Query Assistant panel, and press Enter. The assistant sets up a search, puts its request in the editor, counts the documents it finds and explains the search in its answer. Click Search to run it.

A request in the Query Assistant, the request it wrote in the editor, and the two documents it found
A request written by the Query Assistant
ControlWhat it does
New chatStarts an empty conversation.
Chat list (under New chat)Lists your earlier conversations, each named after your request. Click one to open it again.
ModelThe AI model that writes the request: Fast (quick and low-cost) or Smart (stronger reasoning for complex work). A model that is neither is shown as Other model.
Ask about your search…Where you type your description. Press Enter to send it.

The Query Assistant needs Use Query Chat, and the chat list needs View Oliver Conversations.

Structured document search request (JSON)​

The editor holds the request that Search runs. It is written in JSON, with braces, quotation marks and commas. The top-level fields are:

FieldWhat it holds
textThe words to find, written as you would type them in the search bar.
weightsHow much each searched field counts towards a match, for example content and doc_number.
filtersThe values, dates and options that narrow the results.
sortThe order of the results.
page_sizeHow many results the first page holds.
cursorWhere the next page of results starts. Leave it as it is.
highlightHow the matched text is shown in the results.
A request for the word Quillmarsh in the editor, the count 2 docs under it, and the two documents in the results
A request, its count and its results
ControlWhat it does
Count (under the editor)Shows how many documents the request finds, for example 2 docs. It updates as you change the request.
SearchRuns the request and lists the documents in the results panel. You can also press Ctrl+Enter in the editor.
ClearEmpties the editor.
Simple SearchGoes back to the search bar. The results of your last request stay on the page.

When a request is not valid​

A request must be valid JSON. If a bracket, comma or quotation mark is missing, a message under the editor says that the structured search is not valid JSON. The count is replaced by the message, and Search is unavailable until you correct the request.

The request editor with a missing closing brace, and the message under it saying that the request is not valid JSON
A request that is not valid JSON

Results​

The results panel lists the documents the request found, in the same grid as Search, with the number of hits above it.

Click a result's preview icon to read the document. Close the preview to go back to the results. The request and its results stay on the page.

A document found by the request, open in the preview
A result in the preview

How to build a search with the Query Assistant​

StepDescription
1Open Search and click the code icon in the search bar.
2Click New chat.
3Type what you are looking for in Ask about your search…, for example Find documents whose content mentions Quillmarsh, and press Enter.
4Read the assistant's answer, and the count under the editor.
5Click Search. The documents are listed in the results panel.

Example: Building a search with the Query Assistant and running it

How to write a request yourself​

StepDescription
1Open Search and click the code icon in the search bar.
2Click in the Structured document search request (JSON) editor and type your request, for example {"text": "Quillmarsh"}. To start again, click Clear.
3Check the count under the editor. If a message is shown instead, correct the request.
4Click Search, or press Ctrl+Enter in the editor.

How to go back to an earlier conversation​

StepDescription
1In the chat list under New chat, click the conversation.
2Read its messages, which are shown again.
StepDescription
1Click Simple Search. The results of your last request stay on the page.
2Click the back arrow at the left of the results toolbar. The search bar is shown again.