File tree 1 file changed +30
-4
lines changed
1 file changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -163,11 +163,37 @@ To get the URI, you will need to get it from the published skill you tested in m
163
163
},
164
164
...
165
165
```
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:
167
167
```
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
+
169
195
```
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 .
171
197
172
198
This skill is shaping a new complex object called * tableprojection* that will have many members.
173
199
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
260
286
...
261
287
```
262
288
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", ...\ ] )
264
290
265
291
Now, let’s reprocess documents. Go to the portal to **RESET** your Indexer and re **RUN** it.
266
292
You can’t perform that action at this time.
0 commit comments