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;
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
add a comment |
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
add a comment |
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
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
elasticsearch loopbackjs loopback
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
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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