Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit 55efffa

Browse files
- Bug Fixes.
- Added support for batch-(delete/update). - Dropped support for Laravel 5,6. - Added support for Laravel 8. - Added support for php 8.*. - Dropped support for php 7.*. - Added support for laravel-scout 9.*. - Updated README.md.
2 parents b384a6e + 1ba85c1 commit 55efffa

File tree

6 files changed

+320
-227
lines changed

6 files changed

+320
-227
lines changed

README.md

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/devloopsnet/laravel-typesense.svg?style=for-the-badge)](https://packagist.org/packages/devloopsnet/laravel-typesense) ![Postcardware](https://img.shields.io/badge/Postcardware-%F0%9F%92%8C-197593?style=for-the-badge)
2+
3+
[![PHP from Packagist](https://img.shields.io/packagist/php-v/devloopsnet/laravel-typesense?style=flat-square)](https://packagist.org/packages/devloopsnet/laravel-typesense) [![Total Downloads](https://img.shields.io/packagist/dt/devloopsnet/laravel-typesense.svg?style=flat-square)](https://packagist.org/packages/devloopsnet/laravel-typesense)
4+
5+
16
# Laravel Scout Typesense Engine
27
Typesense engine for laravel/scout https://github.com/typesense/typesense .
38

4-
This package makes it easy to add full text search support to your models with Laravel 5.3 to 7.0.
9+
<p align="center">
10+
<img src="https://banners.beyondco.de/Typesense%20Driver%20for%20Laravel-Scout.png?theme=dark&packageName=devloopsnet%2Flaravel-typesense&pattern=anchorsAway&style=style_1&description=A+Typesense+%28search+engine%29+driver+for+laravel-scout&md=1&showWatermark=0&fontSize=100px&images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg" alt="laravel-scout-typesense-engine
11+
socialcard">
12+
</p>
13+
This package makes it easy to add full text search support to your models with Laravel 7.* to 8.*.
514

615
## Contents
716

@@ -52,22 +61,25 @@ In your `config/scout.php` add:
5261
```php
5362

5463
'typesensesearch' => [
55-
'master_node' => [
56-
'host' => 'HOST',
57-
'port' => '8108',
58-
'protocol' => 'http',
59-
'api_key' => 'API_KEY',
60-
],
61-
'enabled_read_replica' => FALSE,
62-
'read_replica_nodes' => [
64+
'api_key' => 'abcd',
65+
'nodes' => [
6366
[
64-
'host' => 'HOST',
65-
'port' => '8108',
67+
'host' => 'localhost',
68+
'port' => '8108',
69+
'path' => '',
6670
'protocol' => 'http',
67-
'api_key' => 'API_KEY',
6871
],
6972
],
70-
'timeout' => 2,
73+
'nearest_node' => [
74+
'host' => 'localhost',
75+
'port' => '8108',
76+
'path' => '',
77+
'protocol' => 'http',
78+
],
79+
'connection_timeout_seconds' => 2,
80+
'healthcheck_interval_seconds' => 30,
81+
'num_retries' => 3,
82+
'retry_interval_seconds' => 1,
7183
],
7284
```
7385

@@ -106,7 +118,7 @@ class Post extends Model implements TypesenseSearch
106118

107119
public function getCollectionSchema(): array {
108120
return [
109-
'name' => $this->getTable(),
121+
'name' => $this->searchableAs(),
110122
'fields' => [
111123
[
112124
'name' => 'title',

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@
3434
}
3535
},
3636
"require": {
37-
"php": "~7.2",
38-
"laravel/scout": "7.*|^8.0",
39-
"illuminate/bus": "~5.4|^6.0|^7.0",
40-
"illuminate/contracts": "~5.4|^6.0|^7.0",
41-
"illuminate/database": "~5.4|^6.0|^7.0",
42-
"illuminate/pagination": "~5.4|^6.0|^7.0",
43-
"illuminate/queue": "~5.4|^6.0|^7.0",
44-
"illuminate/support": "~5.4|^6.0|^7.0",
45-
"devloopsnet/typesens-php": "^3.0"
37+
"php": "^8.0",
38+
"laravel/scout": "^8.0|^9.0",
39+
"illuminate/bus": "^7.0|^8.0",
40+
"illuminate/contracts": "^7.0|^8.0",
41+
"illuminate/database": "^7.0|^8.0",
42+
"illuminate/pagination": "^7.0|^8.0",
43+
"illuminate/queue": "^7.0|^8.0",
44+
"illuminate/support": "^7.0|^8.0",
45+
"typesense/typesense-php": "^4.0"
4646
},
4747
"suggest": {
48-
"devloopsnet/typesens-php": "Required to use the Typesense php client."
48+
"typesense/typesense-php": "Required to use the Typesense php client."
4949
},
5050
"require-dev": {
5151
"phpunit/phpunit": "^8.0|^9.0",

0 commit comments

Comments
 (0)