Welcome Guest! Log in
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…


Elasticsearch introduced in version 6.x the concept of joined documents.

This offers the possibility to join to documents between them, which will then be related with a parent / child relation.

You can find in this article how to create joined documents with Stambia DI Elasticsearch Connector.

Prerequisites:
  • Stambia DI Elasticsearch Connector 1.1.1 or higher

 

Metadata Configuration

After having reversed a document with a join in your Elasticsearch Metadata, simply add a new value named "routing" at the document's root, and map it in your Mappings:

elasticsearch add routing

 

That's it, you can now use this to define the routing in your Mappings and create joined documents.

 

Mapping Example

In a Mapping, simply map or specify the routing parameter when working with joined documents.

The Parent and child document must have the same routing value to create a relation between them.

esearch routing example

 

 

Articles

Suggest a new Article!