@@ -2218,7 +2218,7 @@ def test_property_text_analyzer_ascii_fold_version_gate(
22182218 name = "title" ,
22192219 data_type = DataType .TEXT ,
22202220 tokenization = Tokenization .WORD ,
2221- text_analyzer = Configure .TextAnalyzer . custom (ascii_fold = True ),
2221+ text_analyzer = Configure .TextAnalyzer (ascii_fold = True ),
22222222 ),
22232223 ],
22242224 )
@@ -2245,14 +2245,14 @@ def test_collection_stopword_presets(collection_factory: CollectionFactory) -> N
22452245 name = "title_fr" ,
22462246 data_type = DataType .TEXT ,
22472247 tokenization = Tokenization .WORD ,
2248- text_analyzer = Configure .TextAnalyzer . custom (stopword_preset = "fr" ),
2248+ text_analyzer = Configure .TextAnalyzer (stopword_preset = "fr" ),
22492249 ),
22502250 # Built-in English preset, set per property.
22512251 Property (
22522252 name = "title_en" ,
22532253 data_type = DataType .TEXT ,
22542254 tokenization = Tokenization .WORD ,
2255- text_analyzer = Configure .TextAnalyzer . custom (stopword_preset = StopwordsPreset .EN ),
2255+ text_analyzer = Configure .TextAnalyzer (stopword_preset = StopwordsPreset .EN ),
22562256 ),
22572257 # No stopword override → uses the collection-level default.
22582258 Property (
@@ -2292,7 +2292,7 @@ def test_collection_stopword_presets_update(collection_factory: CollectionFactor
22922292 name = "title_fr" ,
22932293 data_type = DataType .TEXT ,
22942294 tokenization = Tokenization .WORD ,
2295- text_analyzer = Configure .TextAnalyzer . custom (stopword_preset = "fr" ),
2295+ text_analyzer = Configure .TextAnalyzer (stopword_preset = "fr" ),
22962296 ),
22972297 ],
22982298 )
@@ -2328,7 +2328,7 @@ def test_collection_stopword_presets_remove_in_use_is_rejected(
23282328 name = "title_fr" ,
23292329 data_type = DataType .TEXT ,
23302330 tokenization = Tokenization .WORD ,
2331- text_analyzer = Configure .TextAnalyzer . custom (stopword_preset = "fr" ),
2331+ text_analyzer = Configure .TextAnalyzer (stopword_preset = "fr" ),
23322332 ),
23332333 ],
23342334 )
@@ -2381,7 +2381,7 @@ def test_collection_stopword_presets_remove_unused_is_allowed(
23812381 name = "title" ,
23822382 data_type = DataType .TEXT ,
23832383 tokenization = Tokenization .WORD ,
2384- text_analyzer = Configure .TextAnalyzer . custom (stopword_preset = "fr" ),
2384+ text_analyzer = Configure .TextAnalyzer (stopword_preset = "fr" ),
23852385 ),
23862386 ],
23872387 )
@@ -2418,7 +2418,7 @@ def test_collection_stopword_presets_remove_referenced_by_nested_property_is_rej
24182418 name = "body" ,
24192419 data_type = DataType .TEXT ,
24202420 tokenization = Tokenization .WORD ,
2421- text_analyzer = Configure .TextAnalyzer . custom (stopword_preset = "fr" ),
2421+ text_analyzer = Configure .TextAnalyzer (stopword_preset = "fr" ),
24222422 ),
24232423 ],
24242424 ),
@@ -2453,7 +2453,7 @@ def test_collection_user_defined_stopword_preset_overrides_builtin(
24532453 name = "title" ,
24542454 data_type = DataType .TEXT ,
24552455 tokenization = Tokenization .WORD ,
2456- text_analyzer = Configure .TextAnalyzer . custom (stopword_preset = "en" ),
2456+ text_analyzer = Configure .TextAnalyzer (stopword_preset = "en" ),
24572457 ),
24582458 ],
24592459 )
@@ -2480,7 +2480,7 @@ def test_property_text_analyzer_combined_ascii_fold_and_stopword_preset(
24802480 name = "title" ,
24812481 data_type = DataType .TEXT ,
24822482 tokenization = Tokenization .WORD ,
2483- text_analyzer = Configure .TextAnalyzer . custom (
2483+ text_analyzer = Configure .TextAnalyzer (
24842484 ascii_fold = True ,
24852485 stopword_preset = StopwordsPreset .EN ,
24862486 ),
@@ -2514,9 +2514,7 @@ def test_property_text_analyzer_ascii_fold_immutable(
25142514 name = "title" ,
25152515 data_type = DataType .TEXT ,
25162516 tokenization = Tokenization .WORD ,
2517- text_analyzer = Configure .TextAnalyzer .custom (
2518- ascii_fold = True , ascii_fold_ignore = ["é" ]
2519- ),
2517+ text_analyzer = Configure .TextAnalyzer (ascii_fold = True , ascii_fold_ignore = ["é" ]),
25202518 ),
25212519 ],
25222520 )
@@ -2535,7 +2533,7 @@ def test_property_text_analyzer_ascii_fold_immutable(
25352533 name = "title2" ,
25362534 data_type = DataType .TEXT ,
25372535 tokenization = Tokenization .WORD ,
2538- text_analyzer = Configure .TextAnalyzer . custom (ascii_fold = True , ascii_fold_ignore = ["ñ" ]),
2536+ text_analyzer = Configure .TextAnalyzer (ascii_fold = True , ascii_fold_ignore = ["ñ" ]),
25392537 ),
25402538 )
25412539 config = collection .config .get ()
@@ -2589,7 +2587,7 @@ def test_stopword_presets_roundtrip_from_dict(
25892587 name = "title" ,
25902588 data_type = DataType .TEXT ,
25912589 tokenization = Tokenization .WORD ,
2592- text_analyzer = Configure .TextAnalyzer . custom (stopword_preset = "fr" ),
2590+ text_analyzer = Configure .TextAnalyzer (stopword_preset = "fr" ),
25932591 ),
25942592 ],
25952593 )
@@ -2625,7 +2623,7 @@ def test_text_analyzer_roundtrip_from_dict(
26252623 name = "title" ,
26262624 data_type = DataType .TEXT ,
26272625 tokenization = Tokenization .WORD ,
2628- text_analyzer = Configure .TextAnalyzer . custom (
2626+ text_analyzer = Configure .TextAnalyzer (
26292627 ascii_fold = True ,
26302628 ascii_fold_ignore = ["é" ],
26312629 stopword_preset = StopwordsPreset .EN ,
0 commit comments