Scott Blog


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

  • 搜索

ElasticSearch highlight

发表于 2019-05-18 | 分类于 Tech

Laravel Scout ElasticSearch搜索的基础上,搜索到的关键词加高亮的效果。
参考:
搜索结果高亮
Scout

自定义搜索引擎

阅读全文 »

Laravel ElasticSearch Scout

发表于 2019-05-17 | 分类于 Tech

Laravel 中使用Elasticsearch 结合Scout,实现全文搜索

参考:

  • Laravel Scout+Elastic
  • tamayo/laravel-scout-elastic

安装composer依赖

1
2
composer require tamayo/laravel-scout-elastic
composer require laravel/scout

config/app.php

1
2
3
4
5
6
'providers' => [
...
Laravel\Scout\ScoutServiceProvider::class,
...
ScoutEngines\Elasticsearch\ElasticsearchProvider::class,
],

阅读全文 »

Hello World

发表于 2019-05-17

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server
阅读全文 »

Laravel websockets

发表于 2019-05-16 | 分类于 Tech

Laravel 配合laravel-echo 使用 websockets

参考
Laravel Websockets
广播系统
Build a chat app with laravel

阅读全文 »

12

Scott Shen

记录自己的点滴

14 日志
1 分类
14 标签
RSS
GitHub E-Mail
© 2019 — 2020 Scott Shen
由 Hexo 强力驱动
|
主题 — NexT.Pisces v5.1.4