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.
What you can do in Advanced Structured Search
- 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.

| Panel | What 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.

| Control | What it does |
|---|---|
| New chat | Starts an empty conversation. |
| Chat list (under New chat) | Lists your earlier conversations, each named after your request. Click one to open it again. |
| Model | The 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:
| Field | What it holds |
|---|---|
text | The words to find, written as you would type them in the search bar. |
weights | How much each searched field counts towards a match, for example content and doc_number. |
filters | The values, dates and options that narrow the results. |
sort | The order of the results. |
page_size | How many results the first page holds. |
cursor | Where the next page of results starts. Leave it as it is. |
highlight | How the matched text is shown in the results. |

| Control | What it does |
|---|---|
| Count (under the editor) | Shows how many documents the request finds, for example 2 docs. It updates as you change the request. |
| Search | Runs the request and lists the documents in the results panel. You can also press Ctrl+Enter in the editor. |
| Clear | Empties the editor. |
| Simple Search | Goes 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.

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.

How to build a search with the Query Assistant
| Step | Description |
|---|---|
| 1 | Open Search and click the code icon in the search bar. |
| 2 | Click New chat. |
| 3 | Type what you are looking for in Ask about your search…, for example Find documents whose content mentions Quillmarsh, and press Enter. |
| 4 | Read the assistant's answer, and the count under the editor. |
| 5 | Click 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
| Step | Description |
|---|---|
| 1 | Open Search and click the code icon in the search bar. |
| 2 | Click in the Structured document search request (JSON) editor and type your request, for example {"text": "Quillmarsh"}. To start again, click Clear. |
| 3 | Check the count under the editor. If a message is shown instead, correct the request. |
| 4 | Click Search, or press Ctrl+Enter in the editor. |
How to go back to an earlier conversation
| Step | Description |
|---|---|
| 1 | In the chat list under New chat, click the conversation. |
| 2 | Read its messages, which are shown again. |
How to go back to the search bar
| Step | Description |
|---|---|
| 1 | Click Simple Search. The results of your last request stay on the page. |
| 2 | Click the back arrow at the left of the results toolbar. The search bar is shown again. |