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
> **Note:** This client has been developed for the [Swiftype Site Search](https://www.swiftype.com/site-search) API endpoints only. You may refer to the [Swiftype Site Search API Documentation](https://swiftype.com/documentation/site-search/overview) for additional context.
6
+
> A first-party Python client for the [Elastic Site Search API](https://swiftype.com/documentation/site-search/overview).
6
7
7
-
#Quickstart
8
+
## Contents
8
9
9
-
## Installation
10
+
+[Getting started](#getting-started-)
11
+
+[Usage](#usage)
12
+
+[Running tests](#running-tests)
13
+
+[FAQ](#faq-)
14
+
+[Contribute](#contribute-)
15
+
+[License](#license-)
16
+
17
+
***
18
+
19
+
## Getting started 🐣
10
20
11
21
You can install the latest version of the Swiftype client using `pip`:
12
22
@@ -16,7 +26,9 @@ To install locally, clone this repository, `cd` into the directory and run:
16
26
17
27
python setup.py install
18
28
19
-
## Setup
29
+
> **Note:** This client has been developed for the [Elastic Site Search](https://www.swiftype.com/site-search) API endpoints only. You may refer to the [Elastic Site Search API Documentation](https://swiftype.com/documentation/site-search/overview) for additional context.
30
+
31
+
## Usage
20
32
21
33
1. Create an account at [Swiftype](https://swiftype.com/) and get your API key from your [Account Settings](https://app.swiftype.com/settings/account).
22
34
@@ -34,7 +46,7 @@ To install locally, clone this repository, `cd` into the directory and run:
Now you need to create your `Document`s. It's very important to think about the type of each field you create a `Document`. The `DocumentType` the `Document` belongs to will remember each fields type and it is not possible to change it. The type specifies a fields features and you should choose them wisely. For details please have a look at our [Field Types Documentation](https://swiftype.com/documentation/overview#field_types).
40
52
@@ -63,7 +75,7 @@ Add a `Document` to the `users` `DocumentType`:
Now your `Engine` is ready to receive queries. By default, search queries will match any fields that are of type `string` or `text`. You can search each `DocumentType` individually:
69
81
@@ -74,7 +86,7 @@ or search all `DocumentType`s on your `Engine` at once:
74
86
75
87
results = client.search('youtube', 'swiftype')
76
88
77
-
## Autocomplete
89
+
###Autocomplete
78
90
79
91
Finally, as with full-text searches, you may perform autocomplete-style (prefix match) searches as well:
If you've registered your service as a [Swiftype Platform Application](https://swiftype.com/documentation/users), you can use this library to create users and take actions on their behalf. (Learn more about the Platform API [here](https://swiftype.com/documentation/users).)
326
338
@@ -356,3 +368,30 @@ All of the same Engine APIs documented above will work with your new `user_clien
356
368
357
369
pip install -r test_requirements.txt
358
370
python tests/test_swiftype.py
371
+
372
+
## FAQ 🔮
373
+
374
+
### Where do I report issues with the client?
375
+
376
+
If something is not working as expected, please open an [issue](https://github.com/swiftype/swiftype-py/issues/new).
377
+
378
+
### Where can I learn more about Site Search?
379
+
380
+
Your best bet is to read the [documentation](https://swiftype.com/documentation/site-search).
381
+
382
+
### Where else can I go to get help?
383
+
384
+
You can checkout the [Elastic Site Search community discuss forums](https://discuss.elastic.co/c/site-search).
385
+
386
+
## Contribute 🚀
387
+
388
+
We welcome contributors to the project. Before you begin, a couple notes...
389
+
390
+
+ Before opening a pull request, please create an issue to [discuss the scope of your proposal](https://github.com/swiftype/swiftype-py/issues).
391
+
+ Please write simple code and concise documentation, when appropriate.
0 commit comments