-
Notifications
You must be signed in to change notification settings - Fork 10
/
exacte_match.feature
165 lines (140 loc) · 10.6 KB
/
exacte_match.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# language: nl
@skip-verify
Functionaliteit: leveren van objecten die exact overeenkomen met een opgegeven huisnummer, eventueel in combinatie met een huisletter en/of huisnummertoevoeging
Deze functionaliteit biedt de mogelijkheid om een specifiek object te bevragen ook wanneer er meerdere objecten aan de gegeven parameters voldoen.
Parameter exacteMatch=true werkt als een filter op de objecten die voldoen aan de opgegeven parameters huisnummer, huisletter en huisnummertoevoeging.
De endpoints waar exacte match kan worden toegepast kennen geen fuzzy search.
Wanneer een zoekvraag met de opgegeven parameters meerdere resultaten oplevert en exacteMatch=false, dan worden alle zoekresultaten die overeenkomen met de zoekcriteria geretourneerd.
Wanneer een zoekvraag met de opgegeven parameters meerdere resultaten oplevert en exacteMatch=true, dan wordt alleen het object dat exact overeenkomt met de zoekcriteria geretourneerd.
Er zijn situaties waarbij er ondanks het gebruik van exacteMatch=true meerdere resultaten mogelijk zijn, in dat geval worden alle resultaten geretourneerd.
De exacteMatch parameter is optioneel.
De default waarde van de exacteMatch parameter is false.
Dit betekent dat wanneer de exacteMatch parameter niet wordt opgegeven, dat hetzelfde resultaat oplevert als exacteMatch=false wordt opgegeven.
De exacte match feature kan niet worden gebruikt i.c.m. fuzzy search feature.
Dit betekent dat de exacte match feature en fuzzy search feature niet bij eenzelfde maar bij verschillende endpoints ondersteund worden.
Achtergrond:
Gegeven de volgende verzameling van objecten
| postcode | huisnummer | huisletter | huisnummertoevoeging | nummeraanduidingIdentificatie |
| 2391PH | 1 | | | 1672200000008468 |
| 2391PH | 1 | A | | 1672200000009028 |
| 2391PH | 1 | A | 1 | 0484200002040487 |
| 2391PH | 1 | A | 2 | 0484200002040488 |
| 2391PH | 1 | A | 3 | 0484200002040489 |
| 2391PH | 1 | A | 4 | 0484200002040490 |
| 2391PH | 1 | A | 5 | 0484200002040491 |
| 2391PH | 1 | A | 6 | 0484200002040492 |
| 2391PH | 1 | A | 7 | 0484200002040493 |
| 2391PH | 1 | A | 8 | 0484200002040494 |
| 2391PH | 1 | B | | 1672200000009029 |
| 2391PH | 1 | C | | 1672200000009030 |
| 2391PH | 1 | D | | 1672200000009031 |
| 2391PH | 1 | E | | 1672200000009032 |
| 2391PH | 1 | F | | 1672200000009034 |
| 2594AN | 265 | | | 0518200000390367 |
| 2594AN | 265 | A | | 0518200000452568 |
| 2594AN | 265 | A | 1 | 0518200000452570 |
| 2594AN | 265 | A | 2 | 0518200000620759 |
| 2594AN | 265 | A | 3 | 0518200000625989 |
| 2594AN | 265 | B | | 0518200000454095 |
| 2594AN | 265 | B | 1 | 0518200001647713 |
| 2594AN | 265 | B | 2 | 0518200001647715 |
| 2594AN | 265 | B | 3 | 0518200001647717 |
| 2594AN | 265 | B | 3 | 0518200001775151 |
| 2594AN | 265 | C | | 0518200001664062 |
| 2594AN | 265 | C | 1 | 0518200001664064 |
| 2594AN | 265 | C | 2 | 0518200001664066 |
| 2594AN | 265 | C | 3 | 0518200001664068 |
| 2594AN | 265 | D | | 0518200000411785 |
| 2594AN | 265 | E | | 0518200001639143 |
| 2594AN | 265 | F | | 0518200001639145 |
| 7411CC | 36 | | | 0150200000052413 |
| 7411CC | 36 | | | 0150200000039067 |
| 7437SZ | 2 | A | | 0150200000000313 |
| 7437SZ | 2 | A | | 0150200000052567 |
| 1015DT | 237 | A | V | 0363200000459979 |
| 1015DT | 237 | C | A | 0363200000459980 |
| 3581KL | 49 | | A | 0344200000172058 |
Scenario: Zoeken met combinatie postcode en huisnummer
Als er wordt gezocht met
| postcode | huisnummer | huisletter | huisnummertoevoeging | exacteMatch |
| 2391PH | 1 | | | false |
Dan bevat het resultaat de volgende objecten
| postcode | huisnummer | huisletter | huisnummertoevoeging |
| 2391PH | 1 | | |
| 2391PH | 1 | A | |
| 2391PH | 1 | A | 1 |
| 2391PH | 1 | A | 2 |
| 2391PH | 1 | A | 3 |
| 2391PH | 1 | A | 4 |
| 2391PH | 1 | A | 5 |
| 2391PH | 1 | A | 6 |
| 2391PH | 1 | A | 7 |
| 2391PH | 1 | A | 8 |
| 2391PH | 1 | B | |
| 2391PH | 1 | C | |
| 2391PH | 1 | D | |
| 2391PH | 1 | E | |
| 2391PH | 1 | F | |
Als er wordt gezocht met
| postcode | huisnummer | huisletter | huisnummertoevoeging | exacteMatch |
| 2391PH | 1 | | | true |
Dan bevat het resultaat de volgende objecten
| postcode | huisnummer | huisletter | huisnummertoevoeging |
| 2391PH | 1 | | |
Scenario: zoeken met combinatie postcode, huisnummer en huisnummertoevoeging
Als er wordt gezocht met
| postcode | huisnummer | huisletter | huisnummertoevoeging | exacteMatch |
| 2594AN | 265 | | 2 | false |
Dan bevat het resultaat de volgende objecten
| postcode | huisnummer | huisletter | huisnummertoevoeging |
| 2594AN | 265 | A | 2 |
| 2594AN | 265 | B | 2 |
| 2594AN | 265 | C | 2 |
Als er wordt gezocht met
| postcode | huisnummer | huisletter | huisnummertoevoeging | exacteMatch |
| 2594AN | 265 | | 2 | true |
Dan bevat het resultaat geen objecten
Scenario: zoeken met combinatie postcode en huisnummer komt meerdere keren voor en exacteMatch wordt niet toegepast
Als er wordt gezocht met
| postcode | huisnummer | huisletter | huisnummertoevoeging | exacteMatch |
| 7411CC | 36 | | | false |
Dan bevat het resultaat de volgende objecten
| postcode | huisnummer | huisletter | huisnummertoevoeging |
| 7411CC | 36 | | |
| 7411CC | 36 | | |
Scenario: zoeken met combinatie postcode en huisnummer komt meerdere keren voor en exacteMatch wordt toegepast
Als er wordt gezocht met
| postcode | huisnummer | huisletter | huisnummertoevoeging | exacteMatch |
| 7411CC | 36 | | | true |
Dan bevat het resultaat de volgende objecten
| postcode | huisnummer | huisletter | huisnummertoevoeging |
| 7411CC | 36 | | |
| 7411CC | 36 | | |
Scenario: zoeken met combinatie van postcode en huisnummer waarbij exacteMatch kan worden toegepast kan niet i.c.m. fuzzy search
Als er wordt gezocht met
| postcode | huisnummer | huisletter | huisnummertoevoeging | exacteMatch |
| 2391PH | 1 | | | false |
Dan bevat het resultaat de volgende objecten
| postcode | huisnummer | huisletter | huisnummertoevoeging |
| 2391PH | 1 | | |
Scenario: zoeken met combinatie van postcode, huisnummer en evt. huisletter en/of huisnummertoevoeging en waarbij exacteMatch kan worden toegepast kan niet i.c.m. fuzzy search
Als er wordt gezocht met
| postcode | huisnummer | huisletter | huisnummertoevoeging | exacteMatch |
| 7437SZ | 2 | | A | false |
Dan bevat het resultaat geen objecten
Als er wordt gezocht met
| postcode | huisnummer | huisletter | huisnummertoevoeging | exacteMatch |
| 1015DT | 237 | | A | false |
Dan bevat het resultaat de volgende objecten
| postcode | huisnummer | huisletter | huisnummertoevoeging |
| 1015DT | 237 | C | A |
Als er wordt gezocht met
| postcode | huisnummer | huisletter | huisnummertoevoeging | exacteMatch |
| 3581KL | 49 | A | | false |
Dan bevat het resultaat geen objecten
Als er wordt gezocht met
| postcode | huisnummer | huisletter | huisnummertoevoeging | exacteMatch |
| 1015DT | 237 | A | | false |
Dan bevat het resultaat de volgende objecten
| postcode | huisnummer | huisletter | huisnummertoevoeging |
| 1015DT | 237 | A | V |