douju8113 2017-07-06 10:27
浏览 127

Laravel 5:如何连接到AWS Elasticsearch Service?

So far, I have a basic application in Laravel 5.4, on PHP 7.1, running on an EC2 instance of Ubuntu 16.04.2 LTS. I'm also using AWS Elasticsearch Service, which is active with data.

I've read through the popular guide by Mitch Stanley, but since I'm new to Laravel, and the guide lacks code examples for the model and controller, I'm stuck.

I got as far as:

namespace App;

use Elasticquent\ElasticquentTrait;

class VenuesElasticsearch extends Eloquent
{
    use ElasticquentTrait;
}

... but that chokes on Eloquent, which I suspect is me not knowing what I'm doing.

Eloquent appears to require the installation of Elasticsearch (which isn't feasible on the instance we're using), and I thought it would be possible to skip that and use the AWS endpoint instead?

So this is more a plea: Does anyone know how to connect Laravel 5.4 to the AWS Elasticsearch Service?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 专家修改了标签 8月18日

    悬赏问题

    • ¥15 蓝桥oj3931,请问我错在哪里
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?
    • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥15 cmd cl 0x000007b
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染