You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: concepts/user-folder-scoping.mdx
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,49 @@ async with AsyncMorphik() as db:
103
103
- Scopes can be used for both reading and writing operations
104
104
- User and folder information is stored as metadata with the documents, so you can still filter across scopes with explicit filter parameters if needed
105
105
106
+
## Filtering by Folder Name in Metadata
107
+
108
+
When you ingest documents in a folder with the `folder_name` parameter, that value is automatically available in the document's metadata for filtering. This enables powerful cross-folder queries using Morphik's metadata filter operators:
- Combine folder filters with complex metadata conditions
145
+
- Build dynamic queries where folder selection isn't known at scope creation time
146
+
147
+
For more filtering examples, see the [Complex Metadata Filtering](/cookbooks/complex-metadata-filtering) cookbook and [Metadata Filtering](/concepts/metadata-filtering) reference.
Copy file name to clipboardExpand all lines: cookbooks/complex-metadata-filtering.mdx
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,40 @@ filters = {
99
99
}
100
100
```
101
101
102
+
### Filtering by Folder Name
103
+
104
+
Documents ingested with a `folder_name` parameter can be filtered using that value in metadata. This enables cross-folder queries and pattern matching:
0 commit comments