Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    YueXiaoqiang
    @ScottYueqiang
    is esv6 compatible with LoopBack 4 as well @bharathkontham
    Bharath Reddy Kontham
    @bharathkontham
    @ScottYueqiang, not tested for Loopback 4.
    will check and support for it
    YueXiaoqiang
    @ScottYueqiang
    okay, thanks
    Andrew Kuktenko
    @AndrewKuktenko

    Hi! Have a problem with elasticsearch query

            "native":
              {
                "sort":["_id"],
                "query":{ query_string: { query: 'companyName:apple' } }
              }}

    no matter which query i am using in DEBUG i always get same result
    '{"sort":["_id"],"query":{"bool":{"must":{"match_all":{}},"filter":[{"term":{"docType":"LeadElastic"}}]}}}
    this issue only when i am using "native" filter
    "where" filter works ok but I need to use "query_string" and only way to use it is "native" filter

    Andrew Kuktenko
    @AndrewKuktenko

    // TODO: native query support must be secured to restrict data access to request model /* if (criteria.native) { filter.body = criteria.native; // assume that the developer has provided ES compatible DSL } */

    Found this in source code

    Is it will be available soon?
    Lucio
    @L-Luciano
    Hello
    Erwann Mest
    @kud
    Hey. I would like to know if this connector works on LoopBack v4?
    Rifa Achrinza
    @achrinza
    @kud Technically, it should. Lb4 uses a wrapper to make use of existing juggler-based connectors.
    Erwann Mest
    @kud
    Okay thanks
    Lucio
    @L-Luciano
    Yes, it works fine for loopback's filters.
    balu-ce
    @balu-ce
    Is aggregation query is supported in elasticsearch connector and also I need a sample model and repo file for implementing loopback 4. can anyone please provide that?
    Bharath Reddy Kontham
    @bharathkontham
    @balu-ce , aggregation is not supported, removed native query support for security reasons.
    @/all, I have added support for elasticsearch _source filter.
    New version is 2.0.1
    Will release update with search_after support.
    I'm also working on Loopback 4 official support, it will be available by May 30.
    Bharath Reddy Kontham
    @bharathkontham

    // TODO: native query support must be secured to restrict data access to request model /* if (criteria.native) { filter.body = criteria.native; // assume that the developer has provided ES compatible DSL } */

    Found this in source code

    @AndrewKuktenko , not planning for this now in connector as it requires us to create a property in model to hold aggregation data.
    I would suggest to implement custom remote methods or a mixin for aggregation support.

    You can always use esclient in your loopback code.

    const myesclient = MyModel.getDataSource().connector.db;

    // use es client search method for aggregations
    myesclient.search(...)

    Bharath Reddy Kontham
    @bharathkontham
    @all,
    Added elastic searchnext support for connector
    new version 2.1.0
    check readme for more details on how to use feature.
    Gregory Hernandez (Abax)
    @noGreg
    Any extra documentation for Loopback 4? @bharathkontham
    Mathieu Perochon
    @mperochon
    Any news about the loopback 4 support ?
    Bharath Reddy Kontham
    @bharathkontham
    It is working in loopback 4 without any changes. Will share a sample project with loopback 4 support soon.
    Bharath Reddy Kontham
    @bharathkontham

    Hi all,

    I'm no longer contributing to Loopback 4.x supported connector.
    I didn't like Loopback 4.x, it's too complex and features are not working as expected.

    I have started working on my own ORM with Loopback like querying and relations support
    And it is designed to work with any framework of your choice in node.js
    currently added support for elasticsearch only
    will add support for MongoDB, DynamoDB, Postgres / sequalize soon
    This is developed for Quantela Inc.
    MIT license