Skip to content

Commit 610bbbf

Browse files
author
Luis Cabrera
authored
better explanation of projections and output field-mappings.
Fixed text that describes the manipulations with complex type
1 parent 3dc7e58 commit 610bbbf

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

workshops/Module 4.md

+30-4
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,37 @@ To get the URI, you will need to get it from the published skill you tested in m
163163
},
164164
...
165165
```
166-
Remember that *document/diseases/** refers to an array of strings, something like this:
166+
Remember that *document/diseases* refers to an array of complex types, something like this:
167167
```
168-
"document/diseases": ["heart failure", "morquio", ...]
168+
"document/diseases":
169+
[
170+
{
171+
"name": "heart failure",
172+
"matches": [
173+
{
174+
"text": "heart failure",
175+
"offset": 10,
176+
"length": 12,
177+
"matchDistance": 0.0
178+
}
179+
]
180+
},
181+
{
182+
"name": "morquio",
183+
"matches": [
184+
{
185+
"text": "morquio",
186+
"offset": 25,
187+
"length": 7,
188+
"matchDistance": 0.0
189+
}
190+
]
191+
},
192+
...
193+
]
194+
169195
```
170-
and */document/diseases/** refers to the each of the members of that element -- each of those strings.
196+
and */document/diseases/** refers to the each of the members of that array -- each of those complex types.
171197

172198
This skill is shaping a new complex object called *tableprojection* that will have many members.
173199
You have just added a new member to it called *diseases*.
@@ -260,7 +286,7 @@ https://{your-service-name-goes-here}.search.windows.net/indexers/clinical-trial
260286
...
261287
```
262288

263-
This will map the diseases into two distinct fields, so that we can assign different analyzers to each of them.
289+
This will map each of the names of the diseases complex types into a flat array (i.e. \["diabetes", "morquio", ...\] )
264290

265291
Now, let’s reprocess documents. Go to the portal to **RESET** your Indexer and re **RUN** it.
266292

0 commit comments

Comments
 (0)