Elasticseach plugin for Couchbase : Not returning Documents

Hi,
We're using Couchbase as Primary Datastore and Elasticsearch as SearchStore. For Data Transport, We're using Couchbase Plugin for ElasticSearch.

On referring to Online articles in Couchbase website, I assume that Elasticsearch will Index & store meta data alone and will NOT save the document. Is my understanding correct ?!

My application (.Net using NEST SDK) is designed like Insert/Update/Delete operarions will happen to Couchbase (Data store) and Search request to Elasticsearch (Search Store) using NEST Search API.

Now my application expects entire data (document) matching the search conditions instead of just document IDs. How to make Elasticsearch return document (transported from Couchbase) ?!

Regards,
Sreeram

IIRC what couchbase team did, you need to change the default mapping and remove the _source disabling part.

You will need to remove your index and reindex again.

HTH

Hi David,

Thanks for your response.

{
"template" : "",
"order" : 10,
"mappings" : {
"couchbaseCheckpoint" : {
"_source" : {
"includes" : ["doc.
"]
},
"dynamic_templates": [
{
"store_no_index": {
"match": "",
"mapping": {
"store" : "no",
"index" : "no",
"include_in_all" : false
}
}
}
]
},
"default" : {
"_source" : {
**"includes" : ["meta.
"]**
},
"properties" : {
"meta" : {
"type" : "object",
"include_in_all" : false
}
}
}
}
}

Is it enough to remove the "default" section from couchbase_template.json ?!

Regards,
Sreeram

Yes. That should be enough.
That said I don't really understand what store_no_index is doing here.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.