Skip to main content

Search Examples

This page provides detailed examples of possible search query patterns. All examples use the GDN Web console and HTTP REST API.


Sample Data

The dataset is a JSON file containing 10,000 reviews for hotels in London. Download the JSON file and save it on your local computer.

To import the data into your GDN environment, run the following cURL command with the JSON contents pasted into the data array:

curl --location --request POST 'https://<HOST>/_fabric/Hotels/_api/import/hotel_reviews' \
--header 'accept: application/json' \
--header 'Authorization: <JSON WEB TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
"details": false,
"primaryKey": "",
"replace": false

Each review has the following attributes used for indexing:

  • Property name.
  • Review rating.
  • Review title.
  • Review text.
  • Location of the reviewer.
  • Date of review.