Skip to content

Commit

Permalink
now targets typesense 0.23.1 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
runeanielsen authored Nov 19, 2022
1 parent 2c25dda commit 34f9054
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ executors:
auth:
username: $DOCKER_LOGIN
password: $DOCKER_ACCESSTOKEN
- image: typesense/typesense:0.23.0 # For integration testing
- image: typesense/typesense:0.23.1 # For integration testing
auth:
username: $DOCKER_LOGIN
password: $DOCKER_ACCESSTOKEN
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Clojars Project](https://img.shields.io/clojars/v/io.github.runeanielsen/typesense-clj.svg)](https://clojars.org/io.github.runeanielsen/typesense-clj)

Clojure client for [Typesense 0.23](https://github.com/typesense/typesense)
Clojure client for [Typesense 0.23.1](https://github.com/typesense/typesense)

All of the examples uses the `typesense.client` namespace. The examples shows the simplest way to get started using the client, but all parameters described on Typesense API documentation should work, if that is not the case, please make a pull-request or open an issue.

Expand All @@ -22,11 +22,11 @@ Example of settings.

## Collection

This section describes how to use the collection, further information can be found [here.](https://typesense.org/docs/0.23.0/api/collections.html#create-a-collection)
This section describes how to use the collection, further information can be found [here.](https://typesense.org/docs/0.23.1/api/collections.html#create-a-collection)

### Create collection

The different `types` for the schema can be found [here](https://typesense.org/docs/0.23.0/api/collections.html#create-a-collection).
The different `types` for the schema can be found [here](https://typesense.org/docs/0.23.1/api/collections.html#create-a-collection).

The examples displays the creation of collection named `companies`.

Expand Down Expand Up @@ -186,7 +186,7 @@ Retrieves the collection on the `collection-name`.

## Documents

This section describes how to use the documents, further information can be found [here.](https://typesense.org/docs/0.23.0/api/documents.html)
This section describes how to use the documents, further information can be found [here.](https://typesense.org/docs/0.23.1/api/documents.html)

### Create document

Expand Down Expand Up @@ -264,7 +264,7 @@ Update document in a collection on id. The update can be partial.

## Create/Upsert/Update/Delete Documents

Create/upsert/update documents. All of them takes optional parameters, an example is setting the batch size using `:batch_size 20`. Read more [here.](https://typesense.org/docs/0.23.0/api/documents.html#import-documents)
Create/upsert/update documents. All of them takes optional parameters, an example is setting the batch size using `:batch_size 20`. Read more [here.](https://typesense.org/docs/0.23.1/api/documents.html#import-documents)

### Create documents

Expand Down Expand Up @@ -343,7 +343,7 @@ Export documents in collection.

## Search

Search for documents in a collection. You can find all the query arguments [here.](https://typesense.org/docs/0.23.0/api/documents.html#arguments)
Search for documents in a collection. You can find all the query arguments [here.](https://typesense.org/docs/0.23.1/api/documents.html#arguments)

```clojure
(search settings "companies" {:q "Innovation"
Expand Down Expand Up @@ -375,7 +375,7 @@ Search for documents in a collection. You can find all the query arguments [here

## Multi search

You can send multiple search requests in a single HTTP request, using the Multi-Search feature. This is especially useful to avoid round-trip network latencies incurred otherwise if each of these requests are sent in separate HTTP requests. You can read more about multi-search [here.](https://typesense.org/docs/0.23.0/api/documents.html#federated-multi-search)
You can send multiple search requests in a single HTTP request, using the Multi-Search feature. This is especially useful to avoid round-trip network latencies incurred otherwise if each of these requests are sent in separate HTTP requests. You can read more about multi-search [here.](https://typesense.org/docs/0.23.1/api/documents.html#federated-multi-search)

```clojure
(multi-search settings
Expand Down Expand Up @@ -464,7 +464,7 @@ You can send multiple search requests in a single HTTP request, using the Multi-

## Api keys

Typesense allows you to create API Keys with fine-grain access control. You can restrict access on both a per-collection and per-action level, [read more here](https://typesense.org/docs/0.23.0/api/api-keys.html#create-an-api-key)
Typesense allows you to create API Keys with fine-grain access control. You can restrict access on both a per-collection and per-action level, [read more here](https://typesense.org/docs/0.23.1/api/api-keys.html#create-an-api-key)

### Create api key

Expand Down Expand Up @@ -527,7 +527,7 @@ Deletes api key on `id`.

## Curation

Using overrides, you can include or exclude specific documents for a given query, read more [here.](https://typesense.org/docs/0.23.0/api/curation.html)
Using overrides, you can include or exclude specific documents for a given query, read more [here.](https://typesense.org/docs/0.23.1/api/curation.html)

### Create or update an override

Expand Down Expand Up @@ -595,7 +595,7 @@ Deletes override on name.

## Collection alias

An alias is a virtual collection name that points to a real collection. Read more [here](https://typesense.org/docs/0.23.0/api/collection-alias.html)
An alias is a virtual collection name that points to a real collection. Read more [here](https://typesense.org/docs/0.23.1/api/collection-alias.html)

### Create or update alias

Expand Down Expand Up @@ -643,7 +643,7 @@ Delete alias on collection name.

## Synonyms

The synonyms feature allows you to define search terms that should be considered equivalent, read more [here.](https://typesense.org/docs/0.23.0/api/synonyms.html)
The synonyms feature allows you to define search terms that should be considered equivalent, read more [here.](https://typesense.org/docs/0.23.1/api/synonyms.html)

### Create or update synonym

Expand Down Expand Up @@ -693,7 +693,7 @@ Delete synonym on synonym-name in collection.

### Typesense API Errors

Typesense API exceptions in the [Typesense-api-errors](https://typesense.org/docs/0.23.0/api/api-errors.html) spec.
Typesense API exceptions in the [Typesense-api-errors](https://typesense.org/docs/0.23.1/api/api-errors.html) spec.

| Type | Description |
|:------------------------------------------|:---------------------------------------------------------------------------|
Expand Down Expand Up @@ -723,7 +723,7 @@ bin/kaocha unit
To run the integration tests you can run a local docker instance with the following command. This will start a instance of Typesense on `localhost:8108`. The Typesense instance will be cleaned before starting the integration tests.

```sh
docker run -p 8108:8108 -v/tmp/data:/data typesense/typesense:0.23.0 --data-dir /data --api-key=key
docker run -p 8108:8108 -v/tmp/data:/data typesense/typesense:0.23.1 --data-dir /data --api-key=key
```

The following command runs only the integration tests.
Expand Down
6 changes: 3 additions & 3 deletions test/typesense/client_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
[{:field "company_name"
:matched_tokens ["Innovation"]
:snippet "<mark>Innovation</mark>soft A/S"}]
:text_match 282583051272193}]
:text_match 72341261125681153}]
:out_of 1
:page 1
:request_params
Expand Down Expand Up @@ -379,7 +379,7 @@
[{:field "name"
:matched_tokens ["shoe"]
:snippet "<mark>shoe</mark>"}]
:text_match 282583068049665}]
:text_match 72341265420713985}]
:out_of 1
:page 1
:request_params
Expand All @@ -394,7 +394,7 @@
[{:field "name"
:matched_tokens ["Nike"]
:snippet "<mark>Nike</mark>"}]
:text_match 282583068049665}]
:text_match 72341265420713985}]
:out_of 1
:page 1
:request_params
Expand Down

0 comments on commit 34f9054

Please sign in to comment.