Repository navigation
Commit 543e56d
committed
Enhance DocumentClient and SearchRequest models with additional filtering options
## Summary
This commit updates the `DocumentClient` and `SearchRequest` classes to include new optional parameters for enhanced search capabilities.
## Key Accomplishments
- **New Parameters**: Added `element`, `fiscal_year`, `date_from`, and `date_to` parameters to the `DocumentClient` search method, allowing for more granular filtering of search results.
- **Documentation Updates**: Improved docstrings for the `DocumentClient` and `SearchRequest` classes to reflect the new parameters and their usage.
## Changes Breakdown
- Updated method signatures and docstrings in `document_client.py` to include new filtering options.
- Removed the `semantic` parameter from `SearchRequest` as it is no longer utilized.
## Testing Notes
- Verify that the new parameters function correctly in search queries and return expected results.
- Ensure that existing functionality remains intact and that the removal of the `semantic` parameter does not affect current implementations.
## Infrastructure Considerations
- No breaking changes introduced; existing functionality remains intact.1 parent 8bf0343 commit 543e56d
2 files changed
Lines changed: 17 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
166 | 169 | | |
167 | 170 | | |
168 | | - | |
| 171 | + | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
173 | | - | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
175 | | - | |
176 | | - | |
177 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
| |||
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
189 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
190 | 200 | | |
191 | 201 | | |
192 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
96 | 94 | | |
97 | 95 | | |
98 | 96 | | |
99 | | - | |
100 | | - | |
101 | 97 | | |
102 | 98 | | |
103 | 99 | | |
| |||
125 | 121 | | |
126 | 122 | | |
127 | 123 | | |
128 | | - | |
129 | | - | |
130 | 124 | | |
131 | 125 | | |
132 | 126 | | |
| |||
211 | 205 | | |
212 | 206 | | |
213 | 207 | | |
214 | | - | |
215 | | - | |
216 | 208 | | |
217 | 209 | | |
218 | 210 | | |
| |||
227 | 219 | | |
228 | 220 | | |
229 | 221 | | |
230 | | - | |
231 | 222 | | |
232 | 223 | | |
233 | 224 | | |
| |||
0 commit comments