Loopback4 connect to ElasticsearchMake elasticsearch only return certain fields?Solr vs. ElasticSearchcreate ElasticSearch river for MongoDb replicasetHow to specify integer type for csv-river generated type in ElasticsearchCannot use GeoJSON with Elasticsearch 5 and Kibana 5mapping social relation elasticsearchGetting error in Elasticsearch while creating index using postmanRegistering new users on loopbackjs applicationHow to Use Decimal128 in Loopback Via REST ApiElasticsearch vs MongoDB - Indexing Strategy

Multiple computers 1 minecraft

Is there a canon reason why Klingon and Romulan vessels are so similar in shape?

Chords behaving as a melody

Labelling equations with eqnarray

How to get a character's limb regrown at 3rd level?

How did Lefschetz do mathematics without hands?

Why do changes to /etc/hosts take effect immediately?

What's the safest way to inform a new user of their password on an invite-only website?

Can two or more lightbeams (from a laser for example) have visible interference when they cross in mid-air*?

Will a higher security deposit build credit faster with a secured card?

Which is better for keeping data primary partition or logical partition?

Sharing referee/AE report online to point out a grievous error in refereeing

How did installing this RPM create a file?

Is there reliable evidence that depleted uranium from the 1999 NATO bombing is causing cancer in Serbia?

Golf the smallest circle!

If two black hole event horizons overlap (touch) can they ever separate again?

How do I tell the reader that my character is autistic in Fantasy?

Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?

Was it really unprofessional of me to leave without asking for a raise first?

What's the rule for a natural 20 on a Perception check?

What game is this character in the Pixels movie from?

Donkey as Democratic Party symbolic animal

Should I report a leak of confidential HR information?

Graph problems as integer programs



Loopback4 connect to Elasticsearch


Make elasticsearch only return certain fields?Solr vs. ElasticSearchcreate ElasticSearch river for MongoDb replicasetHow to specify integer type for csv-river generated type in ElasticsearchCannot use GeoJSON with Elasticsearch 5 and Kibana 5mapping social relation elasticsearchGetting error in Elasticsearch while creating index using postmanRegistering new users on loopbackjs applicationHow to Use Decimal128 in Loopback Via REST ApiElasticsearch vs MongoDB - Indexing Strategy






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















How to connect loopback4 server app with Elasticsearch DB.



I have tried with below reference links. but they have not explained for loopback4. And have did same implementation using below references but not able creating mapping properly to fetch records.



https://loopback.io/doc/en/community/Elasticsearch-connector.html



https://github.com/strongloop-community/loopback-connector-elastic-search/tree/feature/esv6




"name": "customer",
"connector": "esv6",
"index": "index_name",
"hosts": [

"protocol": "http",
"host": "127.0.0.1",
"port": 9200

],
"apiVersion": "6.5",
"defaultSize": "100",
"requestTimeout": 30000,
"log": "trace",
"mappingType": "basedata",
"mappings": [],
"mappingProperties":
"......."
"id":
"type": "keyword",
"index": true
,
"docType":
"type": "keyword",
"index": true



}


And my model having same id property like this



@property(
type: "string",
id: true,
generated: true,
)
id: string;


using => "loopback-connector-esv6": "^1.3.0"



i am able to create (POST) a model object with auto generated id (_id)..
but using this id/_id, we are not able to GET find/fetch any data.
except create (POST) other APIS are not working..



So could you please suggest to help on this ..
how to mapping model properties to Elasticsearch DB
using loopback4.










share|improve this question






























    0















    How to connect loopback4 server app with Elasticsearch DB.



    I have tried with below reference links. but they have not explained for loopback4. And have did same implementation using below references but not able creating mapping properly to fetch records.



    https://loopback.io/doc/en/community/Elasticsearch-connector.html



    https://github.com/strongloop-community/loopback-connector-elastic-search/tree/feature/esv6




    "name": "customer",
    "connector": "esv6",
    "index": "index_name",
    "hosts": [

    "protocol": "http",
    "host": "127.0.0.1",
    "port": 9200

    ],
    "apiVersion": "6.5",
    "defaultSize": "100",
    "requestTimeout": 30000,
    "log": "trace",
    "mappingType": "basedata",
    "mappings": [],
    "mappingProperties":
    "......."
    "id":
    "type": "keyword",
    "index": true
    ,
    "docType":
    "type": "keyword",
    "index": true



    }


    And my model having same id property like this



    @property(
    type: "string",
    id: true,
    generated: true,
    )
    id: string;


    using => "loopback-connector-esv6": "^1.3.0"



    i am able to create (POST) a model object with auto generated id (_id)..
    but using this id/_id, we are not able to GET find/fetch any data.
    except create (POST) other APIS are not working..



    So could you please suggest to help on this ..
    how to mapping model properties to Elasticsearch DB
    using loopback4.










    share|improve this question


























      0












      0








      0








      How to connect loopback4 server app with Elasticsearch DB.



      I have tried with below reference links. but they have not explained for loopback4. And have did same implementation using below references but not able creating mapping properly to fetch records.



      https://loopback.io/doc/en/community/Elasticsearch-connector.html



      https://github.com/strongloop-community/loopback-connector-elastic-search/tree/feature/esv6




      "name": "customer",
      "connector": "esv6",
      "index": "index_name",
      "hosts": [

      "protocol": "http",
      "host": "127.0.0.1",
      "port": 9200

      ],
      "apiVersion": "6.5",
      "defaultSize": "100",
      "requestTimeout": 30000,
      "log": "trace",
      "mappingType": "basedata",
      "mappings": [],
      "mappingProperties":
      "......."
      "id":
      "type": "keyword",
      "index": true
      ,
      "docType":
      "type": "keyword",
      "index": true



      }


      And my model having same id property like this



      @property(
      type: "string",
      id: true,
      generated: true,
      )
      id: string;


      using => "loopback-connector-esv6": "^1.3.0"



      i am able to create (POST) a model object with auto generated id (_id)..
      but using this id/_id, we are not able to GET find/fetch any data.
      except create (POST) other APIS are not working..



      So could you please suggest to help on this ..
      how to mapping model properties to Elasticsearch DB
      using loopback4.










      share|improve this question
















      How to connect loopback4 server app with Elasticsearch DB.



      I have tried with below reference links. but they have not explained for loopback4. And have did same implementation using below references but not able creating mapping properly to fetch records.



      https://loopback.io/doc/en/community/Elasticsearch-connector.html



      https://github.com/strongloop-community/loopback-connector-elastic-search/tree/feature/esv6




      "name": "customer",
      "connector": "esv6",
      "index": "index_name",
      "hosts": [

      "protocol": "http",
      "host": "127.0.0.1",
      "port": 9200

      ],
      "apiVersion": "6.5",
      "defaultSize": "100",
      "requestTimeout": 30000,
      "log": "trace",
      "mappingType": "basedata",
      "mappings": [],
      "mappingProperties":
      "......."
      "id":
      "type": "keyword",
      "index": true
      ,
      "docType":
      "type": "keyword",
      "index": true



      }


      And my model having same id property like this



      @property(
      type: "string",
      id: true,
      generated: true,
      )
      id: string;


      using => "loopback-connector-esv6": "^1.3.0"



      i am able to create (POST) a model object with auto generated id (_id)..
      but using this id/_id, we are not able to GET find/fetch any data.
      except create (POST) other APIS are not working..



      So could you please suggest to help on this ..
      how to mapping model properties to Elasticsearch DB
      using loopback4.







      elasticsearch loopbackjs loopback






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 18 at 16:32









      Miroslav Bajtoš

      7,77228 silver badges74 bronze badges




      7,77228 silver badges74 bronze badges










      asked Mar 25 at 13:16









      indrasenaindrasena

      116 bronze badges




      116 bronze badges






















          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338681%2floopback4-connect-to-elasticsearch%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid …


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338681%2floopback4-connect-to-elasticsearch%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

          해남서초등학교 학교 연혁 학교 동문 외부 링크 둘러보기 메뉴북위 34° 34′ 21″ 동경 126° 35′ 50″ / 북위 34.5726385° 동경 126.5972670°  / 34.5726385; 126.5972670해남서초등학교eh