You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> any [Elastic App Search](https://www.elastic.co/products/app-search) Engine.
5
-
6
1
## Contents
7
2
8
3
-[Getting started](#getting-started-)
9
4
-[Usage](#usage)
10
5
-[FAQ](#faq-)
11
-
-[Contribute](#contribute-)
12
6
-[License](#license-)
13
7
14
8
---
15
9
16
10
## Getting started 🐣
17
11
18
-
The Reference UI is great for:
12
+
This is a generated search experience created with [Search UI](https://github.com/elastic/search-ui).
19
13
20
-
- search demos
21
-
- functional tests of App Search Engine data
22
-
- a starting point for new search experiences
14
+
To set up and run this project, follow the instructions below.
23
15
24
16
Requires [npm](https://www.npmjs.com/).
25
17
@@ -36,8 +28,6 @@ nvm install 16.13.0
36
28
nvm use 16.13.0
37
29
```
38
30
39
-
The README assumes that you have generated this code from within the App Search dashboard.
40
-
41
31
Run the following commands to start this application:
42
32
43
33
```bash
@@ -57,16 +47,7 @@ npm start
57
47
58
48
### Updating configuration
59
49
60
-
The project can be configured via a JSON [config file](src/config/engine.json).
61
-
62
-
You can easily control things like...
63
-
64
-
- The Engine the UI runs against
65
-
- Which fields are displayed
66
-
- The filters that are used
67
-
68
-
If you would like to make configuration changes, there is no need to regenerate
69
-
this app from your App Search Dashboard!
50
+
The project is configured via a JSON [config file](src/config/engine.json). This file has been automatically generated for you when downloading this project. If you would like to make configuration changes, there is no need to regenerate this app from your App Search Dashboard. Additional configuration can be made by modifying that file.
70
51
71
52
You can simply open up the
72
53
[engine.json](src/config/engine.json) file, update the [options](#config),
@@ -79,8 +60,7 @@ The following is a complete list of options available for configuration in [engi
79
60
| option | value type | required/optional | source |
|`searchKey`| String | required | Found in your App Search Dashboard. |
85
65
|`searchFields`| Array[String]| required | A list of fields that will be searched with your search term. |
86
66
|`resultFields`| Array[String]| required | A list of fields that will be displayed within your results. |
@@ -90,22 +70,31 @@ The following is a complete list of options available for configuration in [engi
90
70
|`sortFields`| Array[String]| optional | A list of fields that will be used for sort options. |
91
71
|`facets`| Array[String]| optional | A list of fields that will be available as "facet" filters. Read more about facets within the [App Search documentation](https://www.elastic.co/guide/en/app-search/current/facets-guide.html). |
92
72
93
-
### External configuration
94
-
95
-
If you are embedding this app inside of another page, and you would like to
96
-
source the configuration from outside of the `engine.json` file,
97
-
you can simply write the configuration directly to `window.appConfig`.
73
+
## Building and embedding
98
74
99
-
### If you are checking this project out directly from GitHub... <aid="github"></a>
100
-
101
-
You can follow the previous steps, but then you will need to configure
102
-
[engine.json](src/config/engine.json).
75
+
To embed this application into a website, it can be built into static assets using the following command:
76
+
```
77
+
npm run build
78
+
```
103
79
104
-
To do so, make a copy of [engine.json.example](src/config/engine.json.example),
105
-
rename it to `engine.json` and configure it with your Engine's specific details.
80
+
This will create two files in the `build` directory:
This project is built with [Search UI](https://github.com/elastic/search-ui), which is a React library for building search experiences. If you're interested in using this project as a base for your own, most of
128
135
what you'll need can be found in the Search UI documentation.
129
136
130
137
## FAQ 🔮
131
138
132
-
### Where do I report issues with the Reference UI?
139
+
### Where do I report issues with this application?
133
140
134
141
If something is not working as expected, please open an [issue](https://github.com/elastic/app-search-reference-ui-react/issues/new).
135
142
136
-
### Where can I learn more about App Search?
137
-
138
-
Your best bet is to read the [documentation](https://www.elastic.co/guide/en/app-search/current).
139
143
140
144
### Where else can I go to get help?
141
145
142
-
You can checkout the [Elastic App Search community discuss forums](https://discuss.elastic.co/c/app-search).
143
-
144
-
## Contribute 🚀
145
-
146
-
We welcome contributors to the project. Before you begin, a couple notes...
147
-
148
-
- Before opening a pull request, please create an issue to [discuss the scope of your proposal](https://github.com/elastic/app-search-reference-ui-react/issues).
149
-
- Please write simple code and concise documentation, when appropriate.
146
+
You can checkout the [Elastic Enterprise Search community discuss forums](https://discuss.elastic.co/c/enterprise-search/84).
0 commit comments