mobileui-os 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +47 -0
- package/CHANGELOG.md +25 -0
- package/README.md +78 -0
- package/bin/cli.mjs +375 -0
- package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
- package/knowledge/android/accessibility.md +333 -0
- package/knowledge/android/components-controls.md +270 -0
- package/knowledge/android/material-design-3.md +174 -0
- package/knowledge/android/navigation-patterns.md +212 -0
- package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
- package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
- package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
- package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
- package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
- package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
- package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
- package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
- package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
- package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
- package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
- package/knowledge/apple/Interaction-behaviour.md +1378 -0
- package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
- package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
- package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
- package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
- package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
- package/knowledge/apple/Patterns-templates-composition.md +647 -0
- package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
- package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
- package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
- package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
- package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
- package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
- package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
- package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
- package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
- package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
- package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
- package/knowledge/apple/accessibility.md +2162 -0
- package/knowledge/apple/color.md +1933 -0
- package/knowledge/apple/component-architecture.md +2208 -0
- package/knowledge/apple/components.md +2172 -0
- package/knowledge/apple/design-decision-framework.md +1883 -0
- package/knowledge/apple/design-review-engine.md +2108 -0
- package/knowledge/apple/design-tokens.md +1943 -0
- package/knowledge/apple/designing-for-ios.md +1680 -0
- package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
- package/knowledge/apple/hig-foundation.md +1806 -0
- package/knowledge/apple/iconography.md +1903 -0
- package/knowledge/apple/interaction-patterns.md +2513 -0
- package/knowledge/apple/interaction.md +2141 -0
- package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
- package/knowledge/apple/ios-components-and-controls.md +1634 -0
- package/knowledge/apple/ios-components-patterns.md +1343 -0
- package/knowledge/apple/ios-design-system-architecture.md +1520 -0
- package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
- package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
- package/knowledge/apple/ios-forms-and-input.md +1458 -0
- package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
- package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
- package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
- package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
- package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
- package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
- package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
- package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
- package/knowledge/apple/ios-search-and-discovery.md +1456 -0
- package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
- package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
- package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
- package/knowledge/apple/layout.md +2331 -0
- package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
- package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
- package/knowledge/apple/motion-and-animation.md +1698 -0
- package/knowledge/apple/motion.md +2087 -0
- package/knowledge/apple/navigation.md +2281 -0
- package/knowledge/apple/responsive-adaptive.md +2159 -0
- package/knowledge/apple/screen-architecture.md +2067 -0
- package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
- package/knowledge/apple/typography.md +1802 -0
- package/knowledge/apple/ui-ux inteligence audit.md +106 -0
- package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
- package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
- package/knowledge/apple/visual-materials.md +2189 -0
- package/package.json +53 -0
- package/principles/design-principles.md +37 -0
- package/principles/platform-principles.md +25 -0
- package/principles/ux-principles.md +16 -0
- package/references/official-links.md +11 -0
- package/skills/accessibility-engineer/SKILL.md +125 -0
- package/skills/analytics-engineer/SKILL.md +283 -0
- package/skills/animation-engineer/SKILL.md +316 -0
- package/skills/component-designer/SKILL.md +75 -0
- package/skills/component-library-engineer/SKILL.md +140 -0
- package/skills/component-library-ops/SKILL.md +155 -0
- package/skills/design-system/SKILL.md +77 -0
- package/skills/design-token-engineer/SKILL.md +203 -0
- package/skills/design-token-pipeline/SKILL.md +277 -0
- package/skills/device-lab-engineer/SKILL.md +387 -0
- package/skills/forms-engineer/SKILL.md +79 -0
- package/skills/internationalization-engineer/SKILL.md +256 -0
- package/skills/motion-designer/SKILL.md +77 -0
- package/skills/native-data-fetching/SKILL.md +50 -0
- package/skills/navigation-architect/SKILL.md +65 -0
- package/skills/performance-engineer/SKILL.md +250 -0
- package/skills/platform-specialist/SKILL.md +95 -0
- package/skills/pre-release-gate/SKILL.md +75 -0
- package/skills/screen-designer/SKILL.md +117 -0
- package/skills/security-engineer/SKILL.md +375 -0
- package/skills/skills.json +134 -0
- package/skills/testing-auditor/SKILL.md +62 -0
- package/skills/ui-architect/SKILL.md +86 -0
- package/skills/ui-implementer/SKILL.md +188 -0
- package/skills/ux-architect/SKILL.md +49 -0
- package/skills/ux-auditor/SKILL.md +52 -0
- package/skills/visual-auditor/SKILL.md +71 -0
- package/templates/audit-report.md +29 -0
- package/templates/design-tokens.ts +33 -0
- package/templates/screen-spec.md +61 -0
- package/workflows/new-screen.md +17 -0
- package/workflows/pre-release.md +21 -0
- package/workflows/redesign.md +14 -0
- package/workflows/ui-audit.md +22 -0
|
@@ -0,0 +1,1402 @@
|
|
|
1
|
+
# iOS Search, Filtering & Discovery
|
|
2
|
+
|
|
3
|
+
> Agent intelligence module for search, filtering, sorting, browsing,
|
|
4
|
+
> recommendations, discovery, query behavior, and information retrieval UX.
|
|
5
|
+
|
|
6
|
+
Version: 1.0
|
|
7
|
+
Platform: iOS / iPadOS / React Native / Expo
|
|
8
|
+
Role: Search and discovery intelligence
|
|
9
|
+
|
|
10
|
+
Parent:
|
|
11
|
+
|
|
12
|
+
* ios-design-system-architecture.md
|
|
13
|
+
* ios-navigation-and-information-architecture.md
|
|
14
|
+
* ios-components-and-controls.md
|
|
15
|
+
* ios-forms-input-data-entry.md
|
|
16
|
+
* ios-typography-icons-visual-hierarchy.md
|
|
17
|
+
|
|
18
|
+
# 1. PURPOSE
|
|
19
|
+
|
|
20
|
+
Search is not simply a text field.
|
|
21
|
+
|
|
22
|
+
A complete search experience includes:
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
Entry
|
|
26
|
+
↓
|
|
27
|
+
Query understanding
|
|
28
|
+
↓
|
|
29
|
+
Suggestions
|
|
30
|
+
↓
|
|
31
|
+
Execution
|
|
32
|
+
↓
|
|
33
|
+
Results
|
|
34
|
+
↓
|
|
35
|
+
Filtering
|
|
36
|
+
↓
|
|
37
|
+
Sorting
|
|
38
|
+
↓
|
|
39
|
+
Selection
|
|
40
|
+
↓
|
|
41
|
+
Recovery
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The agent should design the entire journey.
|
|
45
|
+
|
|
46
|
+
# 2. CORE PRINCIPLE
|
|
47
|
+
|
|
48
|
+
Search should help users find what they mean, not merely match what they typed.
|
|
49
|
+
|
|
50
|
+
# 3. SEARCH DISCOVERABILITY
|
|
51
|
+
|
|
52
|
+
Search should be discoverable when finding content is an important task.
|
|
53
|
+
|
|
54
|
+
Do not hide critical retrieval functionality behind obscure gestures.
|
|
55
|
+
|
|
56
|
+
# 4. SEARCH PLACEMENT
|
|
57
|
+
|
|
58
|
+
Common patterns include:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
Navigation area
|
|
62
|
+
Top of content
|
|
63
|
+
Dedicated search screen
|
|
64
|
+
Toolbar
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Choose based on task frequency and screen density.
|
|
68
|
+
|
|
69
|
+
# 5. SEARCH ICON
|
|
70
|
+
|
|
71
|
+
A search icon is useful when the meaning is established.
|
|
72
|
+
|
|
73
|
+
For important search workflows, a visible field may communicate capability more
|
|
74
|
+
clearly.
|
|
75
|
+
|
|
76
|
+
# 6. SEARCH ACTIVATION
|
|
77
|
+
|
|
78
|
+
If search opens a dedicated interface:
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
Tap search
|
|
82
|
+
↓
|
|
83
|
+
Search becomes focused
|
|
84
|
+
↓
|
|
85
|
+
Keyboard appears
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
The transition should feel immediate.
|
|
89
|
+
|
|
90
|
+
# 7. SEARCH FIELD
|
|
91
|
+
|
|
92
|
+
A search field should communicate:
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
Purpose
|
|
96
|
+
Current query
|
|
97
|
+
Clear action
|
|
98
|
+
Search state
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
.
|
|
102
|
+
|
|
103
|
+
# 8. SEARCH PLACEHOLDER
|
|
104
|
+
|
|
105
|
+
Good:
|
|
106
|
+
|
|
107
|
+
```text
|
|
108
|
+
Search songs
|
|
109
|
+
Search documents
|
|
110
|
+
Search commands
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Better than generic:
|
|
114
|
+
|
|
115
|
+
```text
|
|
116
|
+
Search...
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
when context-specific language is available.
|
|
120
|
+
|
|
121
|
+
# 9. QUERY PERSISTENCE
|
|
122
|
+
|
|
123
|
+
Decide intentionally whether the previous query should remain.
|
|
124
|
+
|
|
125
|
+
Persistence is useful when:
|
|
126
|
+
|
|
127
|
+
```text
|
|
128
|
+
Returning to results
|
|
129
|
+
Refining a search
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
but undesirable when each search should begin fresh.
|
|
133
|
+
|
|
134
|
+
# 10. CLEAR QUERY
|
|
135
|
+
|
|
136
|
+
Provide a quick way to clear the current query.
|
|
137
|
+
|
|
138
|
+
# 11. CANCEL
|
|
139
|
+
|
|
140
|
+
A search experience that enters a dedicated mode should provide an obvious way
|
|
141
|
+
to exit when appropriate.
|
|
142
|
+
|
|
143
|
+
# 12. KEYBOARD
|
|
144
|
+
|
|
145
|
+
Use the appropriate search keyboard behavior.
|
|
146
|
+
|
|
147
|
+
The user should be able to submit efficiently.
|
|
148
|
+
|
|
149
|
+
# 13. SEARCH RETURN KEY
|
|
150
|
+
|
|
151
|
+
Use a semantic action such as:
|
|
152
|
+
|
|
153
|
+
```text
|
|
154
|
+
Search
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
when pressing Return executes the query.
|
|
158
|
+
|
|
159
|
+
# 14. LIVE SEARCH
|
|
160
|
+
|
|
161
|
+
Search can update results while typing when:
|
|
162
|
+
|
|
163
|
+
```text
|
|
164
|
+
Query processing is fast
|
|
165
|
+
Results are stable
|
|
166
|
+
Network cost is reasonable
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
.
|
|
170
|
+
|
|
171
|
+
# 15. DEBOUNCING
|
|
172
|
+
|
|
173
|
+
Network-backed search should avoid firing expensive requests for every
|
|
174
|
+
keystroke.
|
|
175
|
+
|
|
176
|
+
# 16. SEARCH THRESHOLD
|
|
177
|
+
|
|
178
|
+
Some systems should wait until enough information exists to produce meaningful
|
|
179
|
+
results.
|
|
180
|
+
|
|
181
|
+
# 17. SEARCH FEEDBACK
|
|
182
|
+
|
|
183
|
+
If search is running:
|
|
184
|
+
|
|
185
|
+
```text
|
|
186
|
+
Query
|
|
187
|
+
↓
|
|
188
|
+
Loading
|
|
189
|
+
↓
|
|
190
|
+
Results
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
the state should remain understandable.
|
|
194
|
+
|
|
195
|
+
# 18. SEARCH LATENCY
|
|
196
|
+
|
|
197
|
+
Fast search can feel nearly instantaneous.
|
|
198
|
+
|
|
199
|
+
Slower search needs appropriate progress feedback.
|
|
200
|
+
|
|
201
|
+
# 19. SEARCH CANCELLATION
|
|
202
|
+
|
|
203
|
+
If a new query replaces an older query, stale results should not overwrite newer
|
|
204
|
+
results.
|
|
205
|
+
|
|
206
|
+
# 20. REQUEST RACE CONDITIONS
|
|
207
|
+
|
|
208
|
+
Model query identity explicitly.
|
|
209
|
+
|
|
210
|
+
Conceptually:
|
|
211
|
+
|
|
212
|
+
```text
|
|
213
|
+
Query A
|
|
214
|
+
↓
|
|
215
|
+
Request A
|
|
216
|
+
|
|
217
|
+
Query B
|
|
218
|
+
↓
|
|
219
|
+
Request B
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
If B finishes first, A should not replace B's results afterward.
|
|
223
|
+
|
|
224
|
+
# 21. QUERY NORMALIZATION
|
|
225
|
+
|
|
226
|
+
Normalize input where appropriate:
|
|
227
|
+
|
|
228
|
+
```text
|
|
229
|
+
Whitespace
|
|
230
|
+
Case
|
|
231
|
+
Formatting
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
without destroying meaningful query information.
|
|
235
|
+
|
|
236
|
+
# 22. TYPO TOLERANCE
|
|
237
|
+
|
|
238
|
+
Search should consider reasonable misspellings where the domain supports it.
|
|
239
|
+
|
|
240
|
+
# 23. FUZZY SEARCH
|
|
241
|
+
|
|
242
|
+
Fuzzy matching can improve discovery for:
|
|
243
|
+
|
|
244
|
+
```text
|
|
245
|
+
Names
|
|
246
|
+
Files
|
|
247
|
+
Commands
|
|
248
|
+
Artists
|
|
249
|
+
Products
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
but should not produce confusingly unrelated results.
|
|
253
|
+
|
|
254
|
+
# 24. PREFIX SEARCH
|
|
255
|
+
|
|
256
|
+
Useful when users commonly know the beginning of the target.
|
|
257
|
+
|
|
258
|
+
# 25. FULL-TEXT SEARCH
|
|
259
|
+
|
|
260
|
+
Useful when users may remember any part of the content.
|
|
261
|
+
|
|
262
|
+
# 26. SEARCH SCOPE
|
|
263
|
+
|
|
264
|
+
Users should understand what is being searched.
|
|
265
|
+
|
|
266
|
+
Examples:
|
|
267
|
+
|
|
268
|
+
```text
|
|
269
|
+
Songs
|
|
270
|
+
Artists
|
|
271
|
+
Albums
|
|
272
|
+
Documents
|
|
273
|
+
Notes
|
|
274
|
+
Commands
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
.
|
|
278
|
+
|
|
279
|
+
# 27. GLOBAL SEARCH
|
|
280
|
+
|
|
281
|
+
Global search should communicate that multiple content types may appear.
|
|
282
|
+
|
|
283
|
+
# 28. SCOPED SEARCH
|
|
284
|
+
|
|
285
|
+
Scoped search can improve relevance when the user is already inside a domain.
|
|
286
|
+
|
|
287
|
+
# 29. SEARCH SCOPE SWITCHING
|
|
288
|
+
|
|
289
|
+
If users can switch scope, make the current scope obvious.
|
|
290
|
+
|
|
291
|
+
# 30. SEARCH SUGGESTIONS
|
|
292
|
+
|
|
293
|
+
Suggestions can include:
|
|
294
|
+
|
|
295
|
+
```text
|
|
296
|
+
Recent queries
|
|
297
|
+
Popular queries
|
|
298
|
+
Autocomplete
|
|
299
|
+
Entities
|
|
300
|
+
Commands
|
|
301
|
+
Categories
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
.
|
|
305
|
+
|
|
306
|
+
# 31. AUTOCOMPLETE
|
|
307
|
+
|
|
308
|
+
Autocomplete should help users complete an intention, not merely repeat
|
|
309
|
+
characters.
|
|
310
|
+
|
|
311
|
+
# 32. SUGGESTION QUALITY
|
|
312
|
+
|
|
313
|
+
Suggestions should be:
|
|
314
|
+
|
|
315
|
+
```text
|
|
316
|
+
Relevant
|
|
317
|
+
Fast
|
|
318
|
+
Understandable
|
|
319
|
+
Dismissible
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
.
|
|
323
|
+
|
|
324
|
+
# 33. RECENT SEARCHES
|
|
325
|
+
|
|
326
|
+
Recent searches reduce repeated effort.
|
|
327
|
+
|
|
328
|
+
Allow users to remove individual entries where privacy matters.
|
|
329
|
+
|
|
330
|
+
# 34. SEARCH PRIVACY
|
|
331
|
+
|
|
332
|
+
Search history may contain sensitive information.
|
|
333
|
+
|
|
334
|
+
Do not expose it unnecessarily.
|
|
335
|
+
|
|
336
|
+
# 35. EMPTY QUERY
|
|
337
|
+
|
|
338
|
+
The search screen can show useful discovery content before a query exists:
|
|
339
|
+
|
|
340
|
+
```text
|
|
341
|
+
Recent
|
|
342
|
+
Suggested
|
|
343
|
+
Categories
|
|
344
|
+
Favorites
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
when appropriate.
|
|
348
|
+
|
|
349
|
+
# 36. NO RESULTS
|
|
350
|
+
|
|
351
|
+
"No results" is not enough.
|
|
352
|
+
|
|
353
|
+
Explain:
|
|
354
|
+
|
|
355
|
+
```text
|
|
356
|
+
What was searched
|
|
357
|
+
Why nothing matched
|
|
358
|
+
What the user can try
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
where useful.
|
|
362
|
+
|
|
363
|
+
# 37. NO RESULTS ACTIONS
|
|
364
|
+
|
|
365
|
+
Offer:
|
|
366
|
+
|
|
367
|
+
```text
|
|
368
|
+
Try another query
|
|
369
|
+
Clear filters
|
|
370
|
+
Search broader scope
|
|
371
|
+
Browse categories
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
when appropriate.
|
|
375
|
+
|
|
376
|
+
# 38. ZERO-RESULT DESIGN
|
|
377
|
+
|
|
378
|
+
Avoid dead ends.
|
|
379
|
+
|
|
380
|
+
# 39. PARTIAL RESULTS
|
|
381
|
+
|
|
382
|
+
If results are incomplete because of network or indexing limitations, communicate
|
|
383
|
+
that appropriately.
|
|
384
|
+
|
|
385
|
+
# 40. ERROR VS NO RESULTS
|
|
386
|
+
|
|
387
|
+
These are different states:
|
|
388
|
+
|
|
389
|
+
```text
|
|
390
|
+
No results
|
|
391
|
+
≠
|
|
392
|
+
Search failed
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
The UI should distinguish them.
|
|
396
|
+
|
|
397
|
+
# 41. OFFLINE SEARCH
|
|
398
|
+
|
|
399
|
+
If local data can be searched offline, search should continue to function.
|
|
400
|
+
|
|
401
|
+
# 42. OFFLINE NETWORK SEARCH
|
|
402
|
+
|
|
403
|
+
If remote search is unavailable:
|
|
404
|
+
|
|
405
|
+
```text
|
|
406
|
+
Offline
|
|
407
|
+
↓
|
|
408
|
+
Local results if available
|
|
409
|
+
↓
|
|
410
|
+
Clear network limitation
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
.
|
|
414
|
+
|
|
415
|
+
# 43. FILTERING
|
|
416
|
+
|
|
417
|
+
Filtering narrows an existing result set.
|
|
418
|
+
|
|
419
|
+
# 44. SEARCH VS FILTER
|
|
420
|
+
|
|
421
|
+
Conceptually:
|
|
422
|
+
|
|
423
|
+
```text
|
|
424
|
+
Search → Find matching content
|
|
425
|
+
Filter → Narrow available content
|
|
426
|
+
Sort → Change ordering
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
Do not combine these concepts carelessly.
|
|
430
|
+
|
|
431
|
+
# 45. FILTER DISCOVERABILITY
|
|
432
|
+
|
|
433
|
+
Users should know when filters exist.
|
|
434
|
+
|
|
435
|
+
# 46. FILTER BUTTON
|
|
436
|
+
|
|
437
|
+
A filter control can display active count:
|
|
438
|
+
|
|
439
|
+
```text
|
|
440
|
+
Filters (3)
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
This makes state visible without opening the filter interface.
|
|
444
|
+
|
|
445
|
+
# 47. ACTIVE FILTERS
|
|
446
|
+
|
|
447
|
+
Users should be able to understand active filtering quickly.
|
|
448
|
+
|
|
449
|
+
# 48. FILTER CHIPS
|
|
450
|
+
|
|
451
|
+
Chips are useful for:
|
|
452
|
+
|
|
453
|
+
```text
|
|
454
|
+
Short labels
|
|
455
|
+
Active filters
|
|
456
|
+
Quick removal
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
.
|
|
460
|
+
|
|
461
|
+
# 49. CHIP REMOVAL
|
|
462
|
+
|
|
463
|
+
Active filters should be individually removable when practical.
|
|
464
|
+
|
|
465
|
+
# 50. CLEAR ALL
|
|
466
|
+
|
|
467
|
+
Complex filtering should provide an obvious reset path.
|
|
468
|
+
|
|
469
|
+
# 51. FILTER SHEET
|
|
470
|
+
|
|
471
|
+
A sheet is useful when filters contain:
|
|
472
|
+
|
|
473
|
+
```text
|
|
474
|
+
Multiple categories
|
|
475
|
+
Range selectors
|
|
476
|
+
Boolean options
|
|
477
|
+
Advanced configuration
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
.
|
|
481
|
+
|
|
482
|
+
# 52. FILTER GROUPING
|
|
483
|
+
|
|
484
|
+
Group related filters:
|
|
485
|
+
|
|
486
|
+
```text
|
|
487
|
+
Type
|
|
488
|
+
Date
|
|
489
|
+
Status
|
|
490
|
+
Location
|
|
491
|
+
Category
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
.
|
|
495
|
+
|
|
496
|
+
# 53. FILTER DEPENDENCIES
|
|
497
|
+
|
|
498
|
+
Some filters depend on others.
|
|
499
|
+
|
|
500
|
+
Example:
|
|
501
|
+
|
|
502
|
+
```text
|
|
503
|
+
Category = Music
|
|
504
|
+
↓
|
|
505
|
+
Genre options become available
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
The interface should communicate dependency rather than silently changing
|
|
509
|
+
choices.
|
|
510
|
+
|
|
511
|
+
# 54. FILTER COUNT
|
|
512
|
+
|
|
513
|
+
If filtering changes result count significantly, showing the resulting count
|
|
514
|
+
can improve confidence.
|
|
515
|
+
|
|
516
|
+
# 55. FILTER PREVIEW
|
|
517
|
+
|
|
518
|
+
For expensive filtering operations, preview or explicit Apply may be useful.
|
|
519
|
+
|
|
520
|
+
# 56. LIVE FILTERING
|
|
521
|
+
|
|
522
|
+
Immediate filtering is excellent when updates are cheap and understandable.
|
|
523
|
+
|
|
524
|
+
# 57. APPLY BUTTON
|
|
525
|
+
|
|
526
|
+
Explicit Apply can be appropriate when:
|
|
527
|
+
|
|
528
|
+
```text
|
|
529
|
+
Many filters
|
|
530
|
+
Expensive queries
|
|
531
|
+
Complex combinations
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
exist.
|
|
535
|
+
|
|
536
|
+
# 58. CANCEL FILTERS
|
|
537
|
+
|
|
538
|
+
If filter changes are staged, Cancel should restore the previous state.
|
|
539
|
+
|
|
540
|
+
# 59. FILTER STATE
|
|
541
|
+
|
|
542
|
+
Decide whether filters persist after:
|
|
543
|
+
|
|
544
|
+
```text
|
|
545
|
+
Navigation
|
|
546
|
+
App restart
|
|
547
|
+
New search
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
based on user expectations.
|
|
551
|
+
|
|
552
|
+
# 60. SORTING
|
|
553
|
+
|
|
554
|
+
Sorting changes result order rather than result membership.
|
|
555
|
+
|
|
556
|
+
# 61. SORT LABEL
|
|
557
|
+
|
|
558
|
+
Use understandable labels:
|
|
559
|
+
|
|
560
|
+
```text
|
|
561
|
+
Newest
|
|
562
|
+
Oldest
|
|
563
|
+
Name
|
|
564
|
+
Size
|
|
565
|
+
Duration
|
|
566
|
+
Recently modified
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
instead of technical terminology.
|
|
570
|
+
|
|
571
|
+
# 62. SORT DIRECTION
|
|
572
|
+
|
|
573
|
+
If direction matters, communicate it explicitly.
|
|
574
|
+
|
|
575
|
+
# 63. DEFAULT SORT
|
|
576
|
+
|
|
577
|
+
Choose a default that matches the user's likely task.
|
|
578
|
+
|
|
579
|
+
# 64. SORT PERSISTENCE
|
|
580
|
+
|
|
581
|
+
Preserve sort settings when doing so helps users perform repeated work.
|
|
582
|
+
|
|
583
|
+
# 65. SEARCH + FILTER + SORT
|
|
584
|
+
|
|
585
|
+
A powerful result interface can expose:
|
|
586
|
+
|
|
587
|
+
```text
|
|
588
|
+
Query
|
|
589
|
+
+
|
|
590
|
+
Active filters
|
|
591
|
+
+
|
|
592
|
+
Sort order
|
|
593
|
+
```
|
|
594
|
+
|
|
595
|
+
without making the UI overwhelming.
|
|
596
|
+
|
|
597
|
+
# 66. RESULT COUNT
|
|
598
|
+
|
|
599
|
+
Counts can establish scale:
|
|
600
|
+
|
|
601
|
+
```text
|
|
602
|
+
42 results
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
but should not become noise.
|
|
606
|
+
|
|
607
|
+
# 67. RESULT GROUPING
|
|
608
|
+
|
|
609
|
+
Group results by meaningful categories:
|
|
610
|
+
|
|
611
|
+
```text
|
|
612
|
+
Songs
|
|
613
|
+
Artists
|
|
614
|
+
Albums
|
|
615
|
+
Files
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
when a global search produces multiple entity types.
|
|
619
|
+
|
|
620
|
+
# 68. SECTION LIMITS
|
|
621
|
+
|
|
622
|
+
Avoid showing hundreds of results from one category while hiding useful
|
|
623
|
+
results from others.
|
|
624
|
+
|
|
625
|
+
# 69. SEE ALL
|
|
626
|
+
|
|
627
|
+
Use "See All" when a category is intentionally truncated.
|
|
628
|
+
|
|
629
|
+
# 70. RESULT RANKING
|
|
630
|
+
|
|
631
|
+
Rank results according to relevance, not merely alphabetical order, when
|
|
632
|
+
search intent is ambiguous.
|
|
633
|
+
|
|
634
|
+
# 71. RELEVANCE
|
|
635
|
+
|
|
636
|
+
Potential ranking signals:
|
|
637
|
+
|
|
638
|
+
```text
|
|
639
|
+
Exact match
|
|
640
|
+
Prefix match
|
|
641
|
+
Frequency
|
|
642
|
+
Recency
|
|
643
|
+
User context
|
|
644
|
+
Popularity
|
|
645
|
+
Semantic similarity
|
|
646
|
+
```
|
|
647
|
+
|
|
648
|
+
Use only signals appropriate to the product.
|
|
649
|
+
|
|
650
|
+
# 72. EXACT MATCH
|
|
651
|
+
|
|
652
|
+
Exact matches should usually receive strong priority.
|
|
653
|
+
|
|
654
|
+
# 73. PARTIAL MATCH
|
|
655
|
+
|
|
656
|
+
Partial matches should remain useful without outranking highly relevant exact
|
|
657
|
+
matches unnecessarily.
|
|
658
|
+
|
|
659
|
+
# 74. RECENCY
|
|
660
|
+
|
|
661
|
+
Recency can be useful for:
|
|
662
|
+
|
|
663
|
+
```text
|
|
664
|
+
Documents
|
|
665
|
+
Notes
|
|
666
|
+
Messages
|
|
667
|
+
History
|
|
668
|
+
```
|
|
669
|
+
|
|
670
|
+
but should not automatically override relevance.
|
|
671
|
+
|
|
672
|
+
# 75. PERSONALIZATION
|
|
673
|
+
|
|
674
|
+
Personalized ranking can improve discovery but should remain understandable and
|
|
675
|
+
predictable.
|
|
676
|
+
|
|
677
|
+
# 76. SEARCH RESULT ROW
|
|
678
|
+
|
|
679
|
+
A result should communicate enough information to distinguish it from nearby
|
|
680
|
+
results.
|
|
681
|
+
|
|
682
|
+
# 77. RESULT HIERARCHY
|
|
683
|
+
|
|
684
|
+
Typical structure:
|
|
685
|
+
|
|
686
|
+
```text
|
|
687
|
+
Primary title
|
|
688
|
+
Secondary context
|
|
689
|
+
Metadata
|
|
690
|
+
Optional action
|
|
691
|
+
```
|
|
692
|
+
|
|
693
|
+
.
|
|
694
|
+
|
|
695
|
+
# 78. RESULT ICON
|
|
696
|
+
|
|
697
|
+
Icons can identify entity type:
|
|
698
|
+
|
|
699
|
+
```text
|
|
700
|
+
Document
|
|
701
|
+
Folder
|
|
702
|
+
Song
|
|
703
|
+
Artist
|
|
704
|
+
Command
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
when useful.
|
|
708
|
+
|
|
709
|
+
# 79. RESULT IMAGE
|
|
710
|
+
|
|
711
|
+
Images are useful when visual identity helps recognition.
|
|
712
|
+
|
|
713
|
+
# 80. RESULT ACTIONS
|
|
714
|
+
|
|
715
|
+
Avoid placing too many actions directly on every result.
|
|
716
|
+
|
|
717
|
+
# 81. SWIPE ACTIONS
|
|
718
|
+
|
|
719
|
+
Swipe actions may expose secondary operations but should have accessible
|
|
720
|
+
alternatives.
|
|
721
|
+
|
|
722
|
+
# 82. RESULT SELECTION
|
|
723
|
+
|
|
724
|
+
The primary interaction with a result should be obvious.
|
|
725
|
+
|
|
726
|
+
# 83. RESULT HIGHLIGHTING
|
|
727
|
+
|
|
728
|
+
Highlight matching query terms when it materially improves scanning.
|
|
729
|
+
|
|
730
|
+
# 84. HIGHLIGHT RESTRAINT
|
|
731
|
+
|
|
732
|
+
Do not highlight every occurrence so aggressively that the result becomes
|
|
733
|
+
visually noisy.
|
|
734
|
+
|
|
735
|
+
# 85. SEARCH SNIPPETS
|
|
736
|
+
|
|
737
|
+
For document search, snippets can show why a result matched.
|
|
738
|
+
|
|
739
|
+
# 86. CONTEXT
|
|
740
|
+
|
|
741
|
+
A result should provide enough surrounding context to answer:
|
|
742
|
+
|
|
743
|
+
```text
|
|
744
|
+
"Why did this appear?"
|
|
745
|
+
```
|
|
746
|
+
|
|
747
|
+
.
|
|
748
|
+
|
|
749
|
+
# 87. SEARCH WITHIN DOCUMENT
|
|
750
|
+
|
|
751
|
+
Long content may support:
|
|
752
|
+
|
|
753
|
+
```text
|
|
754
|
+
Find
|
|
755
|
+
Next
|
|
756
|
+
Previous
|
|
757
|
+
Match count
|
|
758
|
+
```
|
|
759
|
+
|
|
760
|
+
.
|
|
761
|
+
|
|
762
|
+
# 88. FIND NAVIGATION
|
|
763
|
+
|
|
764
|
+
Current match should be clearly distinguished from other matches.
|
|
765
|
+
|
|
766
|
+
# 89. SEARCH HISTORY
|
|
767
|
+
|
|
768
|
+
History should be:
|
|
769
|
+
|
|
770
|
+
```text
|
|
771
|
+
Useful
|
|
772
|
+
Private
|
|
773
|
+
Controllable
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
.
|
|
777
|
+
|
|
778
|
+
# 90. SAVED SEARCHES
|
|
779
|
+
|
|
780
|
+
Useful for repeated workflows.
|
|
781
|
+
|
|
782
|
+
Users should understand that a saved search is persistent.
|
|
783
|
+
|
|
784
|
+
# 91. RECENT VS SAVED
|
|
785
|
+
|
|
786
|
+
Distinguish:
|
|
787
|
+
|
|
788
|
+
```text
|
|
789
|
+
Recent
|
|
790
|
+
```
|
|
791
|
+
|
|
792
|
+
from:
|
|
793
|
+
|
|
794
|
+
```text
|
|
795
|
+
Saved
|
|
796
|
+
```
|
|
797
|
+
|
|
798
|
+
because they represent different user intent.
|
|
799
|
+
|
|
800
|
+
# 92. SEARCH SHORTCUTS
|
|
801
|
+
|
|
802
|
+
Power users may benefit from keyboard or command shortcuts.
|
|
803
|
+
|
|
804
|
+
# 93. KEYBOARD SEARCH
|
|
805
|
+
|
|
806
|
+
On iPad/external keyboards, search should be quickly reachable when appropriate.
|
|
807
|
+
|
|
808
|
+
# 94. VOICE SEARCH
|
|
809
|
+
|
|
810
|
+
Voice input can reduce typing friction where platform capabilities support it.
|
|
811
|
+
|
|
812
|
+
# 95. VOICE ERRORS
|
|
813
|
+
|
|
814
|
+
Users should be able to inspect and correct recognized text before executing
|
|
815
|
+
important searches.
|
|
816
|
+
|
|
817
|
+
# 96. AI SEARCH
|
|
818
|
+
|
|
819
|
+
AI-powered search may understand:
|
|
820
|
+
|
|
821
|
+
```text
|
|
822
|
+
Natural language
|
|
823
|
+
Intent
|
|
824
|
+
Semantic similarity
|
|
825
|
+
Context
|
|
826
|
+
```
|
|
827
|
+
|
|
828
|
+
.
|
|
829
|
+
|
|
830
|
+
# 97. AI SEARCH DISCLOSURE
|
|
831
|
+
|
|
832
|
+
Users should understand when results are generated or inferred rather than
|
|
833
|
+
strictly matched.
|
|
834
|
+
|
|
835
|
+
# 98. AI RESULT CONFIDENCE
|
|
836
|
+
|
|
837
|
+
AI search should avoid presenting uncertain interpretations as exact matches.
|
|
838
|
+
|
|
839
|
+
# 99. AI QUERY REWRITE
|
|
840
|
+
|
|
841
|
+
If the system transforms the query, preserve user control and make the
|
|
842
|
+
interpretation understandable when it materially affects results.
|
|
843
|
+
|
|
844
|
+
# 100. NATURAL LANGUAGE SEARCH
|
|
845
|
+
|
|
846
|
+
Example:
|
|
847
|
+
|
|
848
|
+
```text
|
|
849
|
+
"files I edited last week"
|
|
850
|
+
```
|
|
851
|
+
|
|
852
|
+
may map to:
|
|
853
|
+
|
|
854
|
+
```text
|
|
855
|
+
Modified date = last week
|
|
856
|
+
```
|
|
857
|
+
|
|
858
|
+
The resulting filters should be inspectable when practical.
|
|
859
|
+
|
|
860
|
+
# 101. SEARCH EXPLANATION
|
|
861
|
+
|
|
862
|
+
For complex AI search, users may benefit from:
|
|
863
|
+
|
|
864
|
+
```text
|
|
865
|
+
Interpreted as...
|
|
866
|
+
```
|
|
867
|
+
|
|
868
|
+
rather than unexplained results.
|
|
869
|
+
|
|
870
|
+
# 102. SEMANTIC SEARCH
|
|
871
|
+
|
|
872
|
+
Semantic similarity should improve recall without destroying precision.
|
|
873
|
+
|
|
874
|
+
# 103. SEARCH RANKING FAILURE
|
|
875
|
+
|
|
876
|
+
If semantic search produces irrelevant results:
|
|
877
|
+
|
|
878
|
+
```text
|
|
879
|
+
Exact match
|
|
880
|
+
```
|
|
881
|
+
|
|
882
|
+
or:
|
|
883
|
+
|
|
884
|
+
```text
|
|
885
|
+
keyword mode
|
|
886
|
+
```
|
|
887
|
+
|
|
888
|
+
can provide a fallback where appropriate.
|
|
889
|
+
|
|
890
|
+
# 104. COMMAND SEARCH
|
|
891
|
+
|
|
892
|
+
Developer tools can search commands by:
|
|
893
|
+
|
|
894
|
+
```text
|
|
895
|
+
Name
|
|
896
|
+
Purpose
|
|
897
|
+
Platform
|
|
898
|
+
Shell
|
|
899
|
+
Category
|
|
900
|
+
```
|
|
901
|
+
|
|
902
|
+
.
|
|
903
|
+
|
|
904
|
+
# 105. MUSIC SEARCH
|
|
905
|
+
|
|
906
|
+
Music apps may search:
|
|
907
|
+
|
|
908
|
+
```text
|
|
909
|
+
Title
|
|
910
|
+
Artist
|
|
911
|
+
Album
|
|
912
|
+
Genre
|
|
913
|
+
Lyrics
|
|
914
|
+
File name
|
|
915
|
+
```
|
|
916
|
+
|
|
917
|
+
depending on available metadata.
|
|
918
|
+
|
|
919
|
+
# 106. DOCUMENT SEARCH
|
|
920
|
+
|
|
921
|
+
Document apps may search:
|
|
922
|
+
|
|
923
|
+
```text
|
|
924
|
+
Filename
|
|
925
|
+
Text content
|
|
926
|
+
Metadata
|
|
927
|
+
Folder
|
|
928
|
+
Extension
|
|
929
|
+
```
|
|
930
|
+
|
|
931
|
+
.
|
|
932
|
+
|
|
933
|
+
# 107. FILE SEARCH
|
|
934
|
+
|
|
935
|
+
File managers should clearly distinguish:
|
|
936
|
+
|
|
937
|
+
```text
|
|
938
|
+
Name match
|
|
939
|
+
Content match
|
|
940
|
+
Metadata match
|
|
941
|
+
```
|
|
942
|
+
|
|
943
|
+
where relevant.
|
|
944
|
+
|
|
945
|
+
# 108. SEARCH PERFORMANCE
|
|
946
|
+
|
|
947
|
+
For local datasets:
|
|
948
|
+
|
|
949
|
+
```text
|
|
950
|
+
Index
|
|
951
|
+
Cache
|
|
952
|
+
Debounce
|
|
953
|
+
Incremental search
|
|
954
|
+
```
|
|
955
|
+
|
|
956
|
+
can improve responsiveness.
|
|
957
|
+
|
|
958
|
+
# 109. SEARCH INDEX
|
|
959
|
+
|
|
960
|
+
Large local datasets should avoid scanning every record on every keystroke.
|
|
961
|
+
|
|
962
|
+
# 110. DATABASE SEARCH
|
|
963
|
+
|
|
964
|
+
Where appropriate, use database-native indexing or full-text search rather than
|
|
965
|
+
loading the entire dataset into JavaScript.
|
|
966
|
+
|
|
967
|
+
# 111. REACT NATIVE
|
|
968
|
+
|
|
969
|
+
Avoid:
|
|
970
|
+
|
|
971
|
+
```text
|
|
972
|
+
Load 100,000 records
|
|
973
|
+
↓
|
|
974
|
+
filter() on every keystroke
|
|
975
|
+
↓
|
|
976
|
+
render everything
|
|
977
|
+
```
|
|
978
|
+
|
|
979
|
+
.
|
|
980
|
+
|
|
981
|
+
# 112. VIRTUALIZATION
|
|
982
|
+
|
|
983
|
+
Large result sets should use virtualization or equivalent rendering strategies.
|
|
984
|
+
|
|
985
|
+
# 113. PAGINATION
|
|
986
|
+
|
|
987
|
+
Remote search may use:
|
|
988
|
+
|
|
989
|
+
```text
|
|
990
|
+
Pagination
|
|
991
|
+
Cursor loading
|
|
992
|
+
Infinite scrolling
|
|
993
|
+
```
|
|
994
|
+
|
|
995
|
+
depending on the product.
|
|
996
|
+
|
|
997
|
+
# 114. INFINITE SCROLL
|
|
998
|
+
|
|
999
|
+
Infinite scrolling should preserve search context and avoid unexpected position
|
|
1000
|
+
changes.
|
|
1001
|
+
|
|
1002
|
+
# 115. LOAD MORE
|
|
1003
|
+
|
|
1004
|
+
Explicit "Load more" can provide greater control for certain workflows.
|
|
1005
|
+
|
|
1006
|
+
# 116. SEARCH CACHE
|
|
1007
|
+
|
|
1008
|
+
Caching recent results can make repeated searches feel faster.
|
|
1009
|
+
|
|
1010
|
+
# 117. CACHE INVALIDATION
|
|
1011
|
+
|
|
1012
|
+
Cached search results should not silently appear authoritative when data has
|
|
1013
|
+
changed significantly.
|
|
1014
|
+
|
|
1015
|
+
# 118. SEARCH OFFLINE
|
|
1016
|
+
|
|
1017
|
+
Local caches can provide degraded search functionality when connectivity is
|
|
1018
|
+
lost.
|
|
1019
|
+
|
|
1020
|
+
# 119. NETWORK RECOVERY
|
|
1021
|
+
|
|
1022
|
+
When connectivity returns, search should recover without forcing unnecessary
|
|
1023
|
+
user repetition.
|
|
1024
|
+
|
|
1025
|
+
# 120. EMPTY STATES
|
|
1026
|
+
|
|
1027
|
+
Search empty states should be specific.
|
|
1028
|
+
|
|
1029
|
+
Example:
|
|
1030
|
+
|
|
1031
|
+
```text
|
|
1032
|
+
No songs found for "..."
|
|
1033
|
+
```
|
|
1034
|
+
|
|
1035
|
+
is more useful than:
|
|
1036
|
+
|
|
1037
|
+
```text
|
|
1038
|
+
Nothing here
|
|
1039
|
+
```
|
|
1040
|
+
|
|
1041
|
+
# 121. FILTER EMPTY STATE
|
|
1042
|
+
|
|
1043
|
+
If filters cause zero results, make it obvious that filters may be responsible.
|
|
1044
|
+
|
|
1045
|
+
# 122. CLEAR FILTER ACTION
|
|
1046
|
+
|
|
1047
|
+
Provide:
|
|
1048
|
+
|
|
1049
|
+
```text
|
|
1050
|
+
Clear filters
|
|
1051
|
+
```
|
|
1052
|
+
|
|
1053
|
+
when appropriate.
|
|
1054
|
+
|
|
1055
|
+
# 123. SEARCH ERROR STATE
|
|
1056
|
+
|
|
1057
|
+
Search failures should provide:
|
|
1058
|
+
|
|
1059
|
+
```text
|
|
1060
|
+
What failed
|
|
1061
|
+
Retry
|
|
1062
|
+
Alternative action
|
|
1063
|
+
```
|
|
1064
|
+
|
|
1065
|
+
where useful.
|
|
1066
|
+
|
|
1067
|
+
# 124. PARTIAL FAILURE
|
|
1068
|
+
|
|
1069
|
+
If one search category fails while others succeed, avoid destroying all useful
|
|
1070
|
+
results.
|
|
1071
|
+
|
|
1072
|
+
# 125. SEARCH SECURITY
|
|
1073
|
+
|
|
1074
|
+
Search should respect permissions.
|
|
1075
|
+
|
|
1076
|
+
Never reveal inaccessible records simply because the search index contains them.
|
|
1077
|
+
|
|
1078
|
+
# 126. SEARCH PRIVACY
|
|
1079
|
+
|
|
1080
|
+
Do not expose private content through:
|
|
1081
|
+
|
|
1082
|
+
```text
|
|
1083
|
+
Suggestions
|
|
1084
|
+
Recent searches
|
|
1085
|
+
Autocomplete
|
|
1086
|
+
Notifications
|
|
1087
|
+
```
|
|
1088
|
+
|
|
1089
|
+
without appropriate authorization.
|
|
1090
|
+
|
|
1091
|
+
# 127. SEARCH INDEX SECURITY
|
|
1092
|
+
|
|
1093
|
+
Local search indexes containing sensitive content should be protected according
|
|
1094
|
+
to the application's security model.
|
|
1095
|
+
|
|
1096
|
+
# 128. SEARCH ANALYTICS
|
|
1097
|
+
|
|
1098
|
+
Search analytics can reveal:
|
|
1099
|
+
|
|
1100
|
+
```text
|
|
1101
|
+
Failed searches
|
|
1102
|
+
Popular queries
|
|
1103
|
+
Unused filters
|
|
1104
|
+
```
|
|
1105
|
+
|
|
1106
|
+
but should be collected responsibly.
|
|
1107
|
+
|
|
1108
|
+
# 129. FAILED SEARCH ANALYSIS
|
|
1109
|
+
|
|
1110
|
+
Repeated zero-result queries may reveal missing content, poor indexing, or
|
|
1111
|
+
terminology problems.
|
|
1112
|
+
|
|
1113
|
+
# 130. SEARCH LANGUAGE
|
|
1114
|
+
|
|
1115
|
+
Use the vocabulary users expect.
|
|
1116
|
+
|
|
1117
|
+
Do not force internal database terminology into the search interface.
|
|
1118
|
+
|
|
1119
|
+
# 131. SYNONYMS
|
|
1120
|
+
|
|
1121
|
+
Support domain synonyms where useful.
|
|
1122
|
+
|
|
1123
|
+
Example:
|
|
1124
|
+
|
|
1125
|
+
```text
|
|
1126
|
+
movie
|
|
1127
|
+
film
|
|
1128
|
+
```
|
|
1129
|
+
|
|
1130
|
+
may represent the same concept.
|
|
1131
|
+
|
|
1132
|
+
# 132. TYPO CORRECTION
|
|
1133
|
+
|
|
1134
|
+
Corrections should remain transparent when the correction materially changes
|
|
1135
|
+
the query.
|
|
1136
|
+
|
|
1137
|
+
# 133. "DID YOU MEAN?"
|
|
1138
|
+
|
|
1139
|
+
Useful when the system is uncertain.
|
|
1140
|
+
|
|
1141
|
+
# 134. AUTOMATIC CORRECTION
|
|
1142
|
+
|
|
1143
|
+
Automatic correction is acceptable when the intended meaning is highly
|
|
1144
|
+
confident and easy to reverse.
|
|
1145
|
+
|
|
1146
|
+
# 135. SEARCH QUERY PRESERVATION
|
|
1147
|
+
|
|
1148
|
+
Do not silently replace the user's query in a way that prevents them from
|
|
1149
|
+
understanding what happened.
|
|
1150
|
+
|
|
1151
|
+
# 136. RESULT STABILITY
|
|
1152
|
+
|
|
1153
|
+
Results should not reorder dramatically while the user is interacting unless
|
|
1154
|
+
the underlying data genuinely changes.
|
|
1155
|
+
|
|
1156
|
+
# 137. REAL-TIME RESULTS
|
|
1157
|
+
|
|
1158
|
+
If ranking changes continuously, consider communicating updates rather than
|
|
1159
|
+
constantly moving visible items.
|
|
1160
|
+
|
|
1161
|
+
# 138. DISCOVERY WITHOUT SEARCH
|
|
1162
|
+
|
|
1163
|
+
Search should not be the only way to discover content.
|
|
1164
|
+
|
|
1165
|
+
Useful alternatives include:
|
|
1166
|
+
|
|
1167
|
+
```text
|
|
1168
|
+
Categories
|
|
1169
|
+
Collections
|
|
1170
|
+
Recommendations
|
|
1171
|
+
Recents
|
|
1172
|
+
Favorites
|
|
1173
|
+
Popular
|
|
1174
|
+
```
|
|
1175
|
+
|
|
1176
|
+
.
|
|
1177
|
+
|
|
1178
|
+
# 139. BROWSE MODE
|
|
1179
|
+
|
|
1180
|
+
Browse interfaces should provide meaningful paths even without a query.
|
|
1181
|
+
|
|
1182
|
+
# 140. CATEGORY NAVIGATION
|
|
1183
|
+
|
|
1184
|
+
Categories should be mutually understandable and not excessively fragmented.
|
|
1185
|
+
|
|
1186
|
+
# 141. RECOMMENDATIONS
|
|
1187
|
+
|
|
1188
|
+
Recommendations should be relevant to the current context.
|
|
1189
|
+
|
|
1190
|
+
# 142. RECOMMENDATION EXPLANATION
|
|
1191
|
+
|
|
1192
|
+
Where appropriate, explain why something is recommended:
|
|
1193
|
+
|
|
1194
|
+
```text
|
|
1195
|
+
Because you listened to...
|
|
1196
|
+
```
|
|
1197
|
+
|
|
1198
|
+
or:
|
|
1199
|
+
|
|
1200
|
+
```text
|
|
1201
|
+
Recently viewed
|
|
1202
|
+
```
|
|
1203
|
+
|
|
1204
|
+
# 143. RECOMMENDATION CONTROL
|
|
1205
|
+
|
|
1206
|
+
Users should have ways to dismiss or refine irrelevant recommendations when
|
|
1207
|
+
practical.
|
|
1208
|
+
|
|
1209
|
+
# 144. PERSONALIZATION BALANCE
|
|
1210
|
+
|
|
1211
|
+
Personalization should improve discovery without making the interface feel
|
|
1212
|
+
unpredictable.
|
|
1213
|
+
|
|
1214
|
+
# 145. SEARCH + DISCOVERY MODEL
|
|
1215
|
+
|
|
1216
|
+
```text
|
|
1217
|
+
Known item
|
|
1218
|
+
↓
|
|
1219
|
+
Search
|
|
1220
|
+
|
|
1221
|
+
Unknown item
|
|
1222
|
+
↓
|
|
1223
|
+
Browse
|
|
1224
|
+
|
|
1225
|
+
Potentially useful item
|
|
1226
|
+
↓
|
|
1227
|
+
Recommendation
|
|
1228
|
+
```
|
|
1229
|
+
|
|
1230
|
+
The product may need all three.
|
|
1231
|
+
|
|
1232
|
+
# 146. AGENT SEARCH CHECK
|
|
1233
|
+
|
|
1234
|
+
Before designing search, ask:
|
|
1235
|
+
|
|
1236
|
+
```text
|
|
1237
|
+
What are users trying to find?
|
|
1238
|
+
What data can be searched?
|
|
1239
|
+
What should remain local?
|
|
1240
|
+
What should be remote?
|
|
1241
|
+
How quickly can results appear?
|
|
1242
|
+
```
|
|
1243
|
+
|
|
1244
|
+
.
|
|
1245
|
+
|
|
1246
|
+
# 147. AGENT QUERY CHECK
|
|
1247
|
+
|
|
1248
|
+
Ask:
|
|
1249
|
+
|
|
1250
|
+
```text
|
|
1251
|
+
Can users search naturally?
|
|
1252
|
+
Are typos handled?
|
|
1253
|
+
Are synonyms useful?
|
|
1254
|
+
Is scope clear?
|
|
1255
|
+
Can users recover from poor queries?
|
|
1256
|
+
```
|
|
1257
|
+
|
|
1258
|
+
.
|
|
1259
|
+
|
|
1260
|
+
# 148. AGENT RESULT CHECK
|
|
1261
|
+
|
|
1262
|
+
Ask:
|
|
1263
|
+
|
|
1264
|
+
```text
|
|
1265
|
+
Why did this result appear?
|
|
1266
|
+
Can users distinguish results?
|
|
1267
|
+
Is relevance clear?
|
|
1268
|
+
Can they act quickly?
|
|
1269
|
+
```
|
|
1270
|
+
|
|
1271
|
+
.
|
|
1272
|
+
|
|
1273
|
+
# 149. AGENT FILTER CHECK
|
|
1274
|
+
|
|
1275
|
+
Ask:
|
|
1276
|
+
|
|
1277
|
+
```text
|
|
1278
|
+
What filters matter?
|
|
1279
|
+
Which are active?
|
|
1280
|
+
Can users remove them?
|
|
1281
|
+
Can they clear everything?
|
|
1282
|
+
```
|
|
1283
|
+
|
|
1284
|
+
.
|
|
1285
|
+
|
|
1286
|
+
# 150. AGENT PERFORMANCE CHECK
|
|
1287
|
+
|
|
1288
|
+
Ask:
|
|
1289
|
+
|
|
1290
|
+
```text
|
|
1291
|
+
Is search local or remote?
|
|
1292
|
+
Is the dataset large?
|
|
1293
|
+
Do we need indexing?
|
|
1294
|
+
Do we need debouncing?
|
|
1295
|
+
Do we need virtualization?
|
|
1296
|
+
Can stale requests overwrite new results?
|
|
1297
|
+
```
|
|
1298
|
+
|
|
1299
|
+
.
|
|
1300
|
+
|
|
1301
|
+
# 151. AGENT SECURITY CHECK
|
|
1302
|
+
|
|
1303
|
+
Ask:
|
|
1304
|
+
|
|
1305
|
+
```text
|
|
1306
|
+
Does search respect permissions?
|
|
1307
|
+
Could autocomplete leak private information?
|
|
1308
|
+
Could history expose sensitive queries?
|
|
1309
|
+
```
|
|
1310
|
+
|
|
1311
|
+
.
|
|
1312
|
+
|
|
1313
|
+
# 152. SEARCH REVIEW CHECKLIST
|
|
1314
|
+
|
|
1315
|
+
```text
|
|
1316
|
+
[ ] Search is discoverable
|
|
1317
|
+
[ ] Search scope is clear
|
|
1318
|
+
[ ] Keyboard behavior is correct
|
|
1319
|
+
[ ] Query can be cleared
|
|
1320
|
+
[ ] Suggestions are useful
|
|
1321
|
+
[ ] Recent searches are controlled
|
|
1322
|
+
[ ] Search is appropriately debounced
|
|
1323
|
+
[ ] Stale requests cannot overwrite newer results
|
|
1324
|
+
[ ] No-results state is actionable
|
|
1325
|
+
[ ] Error state differs from zero results
|
|
1326
|
+
[ ] Filters are visible when active
|
|
1327
|
+
[ ] Filters can be cleared
|
|
1328
|
+
[ ] Sorting is understandable
|
|
1329
|
+
[ ] Results are relevant
|
|
1330
|
+
[ ] Result context is sufficient
|
|
1331
|
+
[ ] Large datasets are efficiently searched
|
|
1332
|
+
[ ] Results are efficiently rendered
|
|
1333
|
+
[ ] Offline behavior is intentional
|
|
1334
|
+
[ ] Permissions are respected
|
|
1335
|
+
[ ] Search privacy is protected
|
|
1336
|
+
[ ] Accessibility semantics are correct
|
|
1337
|
+
[ ] Large text remains usable
|
|
1338
|
+
[ ] Keyboard navigation works where relevant
|
|
1339
|
+
```
|
|
1340
|
+
|
|
1341
|
+
.
|
|
1342
|
+
|
|
1343
|
+
# 153. QUALITY SCORE
|
|
1344
|
+
|
|
1345
|
+
```text
|
|
1346
|
+
Search clarity 15
|
|
1347
|
+
Relevance 15
|
|
1348
|
+
Discovery 10
|
|
1349
|
+
Filtering 10
|
|
1350
|
+
Result quality 15
|
|
1351
|
+
Performance 10
|
|
1352
|
+
Recovery 10
|
|
1353
|
+
Privacy / security 10
|
|
1354
|
+
Accessibility 5
|
|
1355
|
+
──────────────────────────────
|
|
1356
|
+
Total 100
|
|
1357
|
+
```
|
|
1358
|
+
|
|
1359
|
+
Interpretation:
|
|
1360
|
+
|
|
1361
|
+
```text
|
|
1362
|
+
95–100 Exceptional
|
|
1363
|
+
90–94 Excellent
|
|
1364
|
+
80–89 Strong
|
|
1365
|
+
70–79 Needs refinement
|
|
1366
|
+
60–69 Weak
|
|
1367
|
+
<60 Redesign
|
|
1368
|
+
```
|
|
1369
|
+
|
|
1370
|
+
# 154. FINAL PRINCIPLE
|
|
1371
|
+
|
|
1372
|
+
Search should not feel like:
|
|
1373
|
+
|
|
1374
|
+
```text
|
|
1375
|
+
"I typed something and hope the database understands me."
|
|
1376
|
+
```
|
|
1377
|
+
|
|
1378
|
+
It should feel like:
|
|
1379
|
+
|
|
1380
|
+
```text
|
|
1381
|
+
"I know what I want,
|
|
1382
|
+
and the interface helps me get there."
|
|
1383
|
+
```
|
|
1384
|
+
|
|
1385
|
+
# 155. FINAL AGENT DIRECTIVE
|
|
1386
|
+
|
|
1387
|
+
When designing search and discovery:
|
|
1388
|
+
|
|
1389
|
+
```text
|
|
1390
|
+
Known thing → Search
|
|
1391
|
+
Unknown thing → Browse
|
|
1392
|
+
Possible thing → Recommend
|
|
1393
|
+
Too many results → Filter
|
|
1394
|
+
Wrong order → Sort
|
|
1395
|
+
No results → Recover
|
|
1396
|
+
```
|
|
1397
|
+
|
|
1398
|
+
The best search experience is not the one with the most sophisticated
|
|
1399
|
+
algorithm.
|
|
1400
|
+
|
|
1401
|
+
It is the one that gets the user to the **right information with the least
|
|
1402
|
+
friction**.
|