Commit 2bd23c7
committed
refactor: Improve code organization and extend stopwords validation
Three improvements:
1. Rename test class for clarity
- TestMultipleCommandsScenarioIntegration → TestFieldModifierIntegration
- test_mlp_commands_index_creation → test_index_creation_with_multiple_modifiers
- Use general naming instead of MLP-specific terminology for open-source
2. Move imports to file level
- Moved FilterQuery import from inside test function to top of file
- Follows standard Python convention
3. Extend stopwords validation to AggregateHybridQuery
- Added AggregateHybridQuery to stopwords warning in _validate_query()
- Both TextQuery and AggregateHybridQuery now warn when using query-time
stopwords with index-level STOPWORDS 0
- Warning message now includes the specific query type for clarity1 parent 4d70be5 commit 2bd23c7
File tree
3 files changed
+10
-9
lines changed- redisvl/index
- tests/integration
3 files changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | | - | |
| 254 | + | |
254 | 255 | | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
258 | | - | |
| 259 | + | |
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| 266 | + | |
265 | 267 | | |
266 | | - | |
| 268 | + | |
267 | 269 | | |
268 | 270 | | |
269 | 271 | | |
270 | | - | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
| 307 | + | |
| 308 | + | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
183 | | - | |
184 | | - | |
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
| |||
0 commit comments