@@ -374,10 +374,10 @@ public void named_non_parse_expression() {
374374 void match_bool_prefix_expression () {
375375 assertAnalyzeEqual (
376376 DSL .match_bool_prefix (
377- DSL .namedArgument ("field" , DSL .literal ("fieldA " )),
377+ DSL .namedArgument ("field" , DSL .literal ("field_value1 " )),
378378 DSL .namedArgument ("query" , DSL .literal ("sample query" ))),
379379 AstDSL .function ("match_bool_prefix" ,
380- AstDSL .unresolvedArg ("field" , stringLiteral ("fieldA " )),
380+ AstDSL .unresolvedArg ("field" , stringLiteral ("field_value1 " )),
381381 AstDSL .unresolvedArg ("query" , stringLiteral ("sample query" ))));
382382 }
383383
@@ -418,11 +418,11 @@ void multi_match_expression() {
418418 DSL .multi_match (
419419 DSL .namedArgument ("fields" , DSL .literal (
420420 new ExprTupleValue (new LinkedHashMap <>(ImmutableMap .of (
421- "field " , ExprValueUtils .floatValue (1.F )))))),
421+ "field_value1 " , ExprValueUtils .floatValue (1.F )))))),
422422 DSL .namedArgument ("query" , DSL .literal ("sample query" ))),
423423 AstDSL .function ("multi_match" ,
424424 AstDSL .unresolvedArg ("fields" , new RelevanceFieldList (Map .of (
425- "field " , 1.F ))),
425+ "field_value1 " , 1.F ))),
426426 AstDSL .unresolvedArg ("query" , stringLiteral ("sample query" ))));
427427 }
428428
@@ -432,12 +432,12 @@ void multi_match_expression_with_params() {
432432 DSL .multi_match (
433433 DSL .namedArgument ("fields" , DSL .literal (
434434 new ExprTupleValue (new LinkedHashMap <>(ImmutableMap .of (
435- "field " , ExprValueUtils .floatValue (1.F )))))),
435+ "field_value1 " , ExprValueUtils .floatValue (1.F )))))),
436436 DSL .namedArgument ("query" , DSL .literal ("sample query" )),
437437 DSL .namedArgument ("analyzer" , DSL .literal ("keyword" ))),
438438 AstDSL .function ("multi_match" ,
439439 AstDSL .unresolvedArg ("fields" , new RelevanceFieldList (Map .of (
440- "field " , 1.F ))),
440+ "field_value1 " , 1.F ))),
441441 AstDSL .unresolvedArg ("query" , stringLiteral ("sample query" )),
442442 AstDSL .unresolvedArg ("analyzer" , stringLiteral ("keyword" ))));
443443 }
@@ -448,12 +448,12 @@ void multi_match_expression_two_fields() {
448448 DSL .multi_match (
449449 DSL .namedArgument ("fields" , DSL .literal (
450450 new ExprTupleValue (new LinkedHashMap <>(ImmutableMap .of (
451- "field1 " , ExprValueUtils .floatValue (1.F ),
452- "field2 " , ExprValueUtils .floatValue (.3F )))))),
451+ "field_value1 " , ExprValueUtils .floatValue (1.F ),
452+ "field_value2 " , ExprValueUtils .floatValue (.3F )))))),
453453 DSL .namedArgument ("query" , DSL .literal ("sample query" ))),
454454 AstDSL .function ("multi_match" ,
455455 AstDSL .unresolvedArg ("fields" , new RelevanceFieldList (ImmutableMap .of (
456- "field1 " , 1.F , "field2 " , .3F ))),
456+ "field_value1 " , 1.F , "field_value2 " , .3F ))),
457457 AstDSL .unresolvedArg ("query" , stringLiteral ("sample query" ))));
458458 }
459459
@@ -463,11 +463,11 @@ void simple_query_string_expression() {
463463 DSL .simple_query_string (
464464 DSL .namedArgument ("fields" , DSL .literal (
465465 new ExprTupleValue (new LinkedHashMap <>(ImmutableMap .of (
466- "field " , ExprValueUtils .floatValue (1.F )))))),
466+ "field_value1 " , ExprValueUtils .floatValue (1.F )))))),
467467 DSL .namedArgument ("query" , DSL .literal ("sample query" ))),
468468 AstDSL .function ("simple_query_string" ,
469469 AstDSL .unresolvedArg ("fields" , new RelevanceFieldList (Map .of (
470- "field " , 1.F ))),
470+ "field_value1 " , 1.F ))),
471471 AstDSL .unresolvedArg ("query" , stringLiteral ("sample query" ))));
472472 }
473473
@@ -477,12 +477,12 @@ void simple_query_string_expression_with_params() {
477477 DSL .simple_query_string (
478478 DSL .namedArgument ("fields" , DSL .literal (
479479 new ExprTupleValue (new LinkedHashMap <>(ImmutableMap .of (
480- "field " , ExprValueUtils .floatValue (1.F )))))),
480+ "field_value1 " , ExprValueUtils .floatValue (1.F )))))),
481481 DSL .namedArgument ("query" , DSL .literal ("sample query" )),
482482 DSL .namedArgument ("analyzer" , DSL .literal ("keyword" ))),
483483 AstDSL .function ("simple_query_string" ,
484484 AstDSL .unresolvedArg ("fields" , new RelevanceFieldList (Map .of (
485- "field " , 1.F ))),
485+ "field_value1 " , 1.F ))),
486486 AstDSL .unresolvedArg ("query" , stringLiteral ("sample query" )),
487487 AstDSL .unresolvedArg ("analyzer" , stringLiteral ("keyword" ))));
488488 }
@@ -493,12 +493,12 @@ void simple_query_string_expression_two_fields() {
493493 DSL .simple_query_string (
494494 DSL .namedArgument ("fields" , DSL .literal (
495495 new ExprTupleValue (new LinkedHashMap <>(ImmutableMap .of (
496- "field1 " , ExprValueUtils .floatValue (1.F ),
497- "field2 " , ExprValueUtils .floatValue (.3F )))))),
496+ "field_value1 " , ExprValueUtils .floatValue (1.F ),
497+ "field_value2 " , ExprValueUtils .floatValue (.3F )))))),
498498 DSL .namedArgument ("query" , DSL .literal ("sample query" ))),
499499 AstDSL .function ("simple_query_string" ,
500500 AstDSL .unresolvedArg ("fields" , new RelevanceFieldList (ImmutableMap .of (
501- "field1 " , 1.F , "field2 " , .3F ))),
501+ "field_value1 " , 1.F , "field_value2 " , .3F ))),
502502 AstDSL .unresolvedArg ("query" , stringLiteral ("sample query" ))));
503503 }
504504
@@ -517,11 +517,11 @@ void query_string_expression() {
517517 DSL .query_string (
518518 DSL .namedArgument ("fields" , DSL .literal (
519519 new ExprTupleValue (new LinkedHashMap <>(ImmutableMap .of (
520- "field " , ExprValueUtils .floatValue (1.F )))))),
520+ "field_value1 " , ExprValueUtils .floatValue (1.F )))))),
521521 DSL .namedArgument ("query" , DSL .literal ("query_value" ))),
522522 AstDSL .function ("query_string" ,
523523 AstDSL .unresolvedArg ("fields" , new RelevanceFieldList (Map .of (
524- "field " , 1.F ))),
524+ "field_value1 " , 1.F ))),
525525 AstDSL .unresolvedArg ("query" , stringLiteral ("query_value" ))));
526526 }
527527
@@ -531,12 +531,12 @@ void query_string_expression_with_params() {
531531 DSL .query_string (
532532 DSL .namedArgument ("fields" , DSL .literal (
533533 new ExprTupleValue (new LinkedHashMap <>(ImmutableMap .of (
534- "field " , ExprValueUtils .floatValue (1.F )))))),
534+ "field_value1 " , ExprValueUtils .floatValue (1.F )))))),
535535 DSL .namedArgument ("query" , DSL .literal ("query_value" )),
536536 DSL .namedArgument ("escape" , DSL .literal ("false" ))),
537537 AstDSL .function ("query_string" ,
538538 AstDSL .unresolvedArg ("fields" , new RelevanceFieldList (Map .of (
539- "field " , 1.F ))),
539+ "field_value1 " , 1.F ))),
540540 AstDSL .unresolvedArg ("query" , stringLiteral ("query_value" )),
541541 AstDSL .unresolvedArg ("escape" , stringLiteral ("false" ))));
542542 }
@@ -547,12 +547,12 @@ void query_string_expression_two_fields() {
547547 DSL .query_string (
548548 DSL .namedArgument ("fields" , DSL .literal (
549549 new ExprTupleValue (new LinkedHashMap <>(ImmutableMap .of (
550- "field1 " , ExprValueUtils .floatValue (1.F ),
551- "field2 " , ExprValueUtils .floatValue (.3F )))))),
550+ "field_value1 " , ExprValueUtils .floatValue (1.F ),
551+ "field_value2 " , ExprValueUtils .floatValue (.3F )))))),
552552 DSL .namedArgument ("query" , DSL .literal ("query_value" ))),
553553 AstDSL .function ("query_string" ,
554554 AstDSL .unresolvedArg ("fields" , new RelevanceFieldList (ImmutableMap .of (
555- "field1 " , 1.F , "field2 " , .3F ))),
555+ "field_value1 " , 1.F , "field_value2 " , .3F ))),
556556 AstDSL .unresolvedArg ("query" , stringLiteral ("query_value" ))));
557557 }
558558
@@ -588,7 +588,7 @@ void wildcard_query_expression_all_params() {
588588 public void match_phrase_prefix_all_params () {
589589 assertAnalyzeEqual (
590590 DSL .match_phrase_prefix (
591- DSL .namedArgument ("field" , "test " ),
591+ DSL .namedArgument ("field" , "field_value1 " ),
592592 DSL .namedArgument ("query" , "search query" ),
593593 DSL .namedArgument ("slop" , "3" ),
594594 DSL .namedArgument ("boost" , "1.5" ),
@@ -597,7 +597,7 @@ public void match_phrase_prefix_all_params() {
597597 DSL .namedArgument ("zero_terms_query" , "NONE" )
598598 ),
599599 AstDSL .function ("match_phrase_prefix" ,
600- unresolvedArg ("field" , stringLiteral ("test " )),
600+ unresolvedArg ("field" , stringLiteral ("field_value1 " )),
601601 unresolvedArg ("query" , stringLiteral ("search query" )),
602602 unresolvedArg ("slop" , stringLiteral ("3" )),
603603 unresolvedArg ("boost" , stringLiteral ("1.5" )),
0 commit comments