@@ -355,12 +355,12 @@ public void geoShapeFilterSpherical() throws ParseException {
355
355
final Polygon small = factory .createPolygon (new Coordinate []{new Coordinate (34.9001 , 29.7001 ),
356
356
new Coordinate (34.9001 , 29.7100 ), new Coordinate (34.9100 , 29.7100 ),
357
357
new Coordinate (34.9100 , 29.7001 ), new Coordinate (34.9001 , 29.7001 )});
358
- client .hset ("small" , RediSearchUtil . toStringMap ( Collections . singletonMap ( "geom" , small ) ));
358
+ client .hset ("small" , "geom" , small . toString ( ));
359
359
360
360
final Polygon large = factory .createPolygon (new Coordinate []{new Coordinate (34.9001 , 29.7001 ),
361
361
new Coordinate (34.9001 , 29.7200 ), new Coordinate (34.9200 , 29.7200 ),
362
362
new Coordinate (34.9200 , 29.7001 ), new Coordinate (34.9001 , 29.7001 )});
363
- client .hset ("large" , RediSearchUtil . toStringMap ( Collections . singletonMap ( "geom" , large ) ));
363
+ client .hset ("large" , "geom" , large . toString ( ));
364
364
365
365
// within condition
366
366
final Polygon within = factory .createPolygon (new Coordinate []{new Coordinate (34.9000 , 29.7000 ),
@@ -385,7 +385,7 @@ public void geoShapeFilterSpherical() throws ParseException {
385
385
386
386
// point type
387
387
final Point point = factory .createPoint (new Coordinate (34.9010 , 29.7010 ));
388
- client .hset ("point" , RediSearchUtil . toStringMap ( Collections . singletonMap ( "geom" , point ) ));
388
+ client .hset ("point" , "geom" , point . toString ( ));
389
389
390
390
res = client .ftSearch (index , "@geom:[within $poly]" ,
391
391
FTSearchParams .searchParams ().addParam ("poly" , within ).dialect (3 ));
@@ -403,11 +403,11 @@ public void geoShapeFilterFlat() throws ParseException {
403
403
// polygon type
404
404
final Polygon small = factory .createPolygon (new Coordinate []{new Coordinate (1 , 1 ),
405
405
new Coordinate (1 , 100 ), new Coordinate (100 , 100 ), new Coordinate (100 , 1 ), new Coordinate (1 , 1 )});
406
- client .hset ("small" , RediSearchUtil . toStringMap ( Collections . singletonMap ( "geom" , small ) ));
406
+ client .hset ("small" , "geom" , small . toString ( ));
407
407
408
408
final Polygon large = factory .createPolygon (new Coordinate []{new Coordinate (1 , 1 ),
409
409
new Coordinate (1 , 200 ), new Coordinate (200 , 200 ), new Coordinate (200 , 1 ), new Coordinate (1 , 1 )});
410
- client .hset ("large" , RediSearchUtil . toStringMap ( Collections . singletonMap ( "geom" , large ) ));
410
+ client .hset ("large" , "geom" , large . toString ( ));
411
411
412
412
// within condition
413
413
final Polygon within = factory .createPolygon (new Coordinate []{new Coordinate (0 , 0 ),
@@ -430,7 +430,7 @@ public void geoShapeFilterFlat() throws ParseException {
430
430
431
431
// point type
432
432
final Point point = factory .createPoint (new Coordinate (10 , 10 ));
433
- client .hset ("point" , RediSearchUtil . toStringMap ( Collections . singletonMap ( "geom" , point ) ));
433
+ client .hset ("point" , "geom" , point . toString ( ));
434
434
435
435
res = client .ftSearch (index , "@geom:[within $poly]" ,
436
436
FTSearchParams .searchParams ().addParam ("poly" , within ).dialect (3 ));
@@ -1100,9 +1100,9 @@ public void maxPrefixExpansionSearchProfile() {
1100
1100
client .ftConfigSet (configParam , "2" );
1101
1101
1102
1102
assertOK (client .ftCreate (index , TextField .of ("t" )));
1103
- client .hset ("1" , Collections . singletonMap ( "t" , "foo1" ) );
1104
- client .hset ("2" , Collections . singletonMap ( "t" , "foo2" ) );
1105
- client .hset ("3" , Collections . singletonMap ( "t" , "foo3" ) );
1103
+ client .hset ("1" , "t" , "foo1" );
1104
+ client .hset ("2" , "t" , "foo2" );
1105
+ client .hset ("3" , "t" , "foo3" );
1106
1106
1107
1107
Map .Entry <SearchResult , Map <String , Object >> profile = client .ftProfileSearch (index ,
1108
1108
FTProfileParams .profileParams (), "foo*" , FTSearchParams .searchParams ().limit (0 , 0 ));
@@ -1116,8 +1116,8 @@ public void maxPrefixExpansionSearchProfile() {
1116
1116
@ Test
1117
1117
public void notIteratorSearchProfile () {
1118
1118
assertOK (client .ftCreate (index , TextField .of ("t" )));
1119
- client .hset ("1" , Collections . singletonMap ( "t" , "foo" ) );
1120
- client .hset ("2" , Collections . singletonMap ( "t" , "bar" ) );
1119
+ client .hset ("1" , "t" , "foo" );
1120
+ client .hset ("2" , "t" , "bar" );
1121
1121
1122
1122
Map .Entry <SearchResult , Map <String , Object >> profile = client .ftProfileSearch (index ,
1123
1123
FTProfileParams .profileParams (), "foo -@t:baz" , FTSearchParams .searchParams ().noContent ());
@@ -1136,8 +1136,8 @@ public void notIteratorSearchProfile() {
1136
1136
@ Test
1137
1137
public void deepReplySearchProfile () {
1138
1138
assertOK (client .ftCreate (index , TextField .of ("t" )));
1139
- client .hset ("1" , Collections . singletonMap ( "t" , "hello" ) );
1140
- client .hset ("2" , Collections . singletonMap ( "t" , "world" ) );
1139
+ client .hset ("1" , "t" , "hello" );
1140
+ client .hset ("2" , "t" , "world" );
1141
1141
1142
1142
Map .Entry <SearchResult , Map <String , Object >> profile
1143
1143
= client .ftProfileSearch (index , FTProfileParams .profileParams (),
@@ -1171,10 +1171,10 @@ public void deepReplySearchProfile() {
1171
1171
@ Test
1172
1172
public void limitedSearchProfile () {
1173
1173
assertOK (client .ftCreate (index , TextField .of ("t" )));
1174
- client .hset ("1" , Collections . singletonMap ( "t" , "hello" ) );
1175
- client .hset ("2" , Collections . singletonMap ( "t" , "hell" ) );
1176
- client .hset ("3" , Collections . singletonMap ( "t" , "help" ) );
1177
- client .hset ("4" , Collections . singletonMap ( "t" , "helowa" ) );
1174
+ client .hset ("1" , "t" , "hello" );
1175
+ client .hset ("2" , "t" , "hell" );
1176
+ client .hset ("3" , "t" , "help" );
1177
+ client .hset ("4" , "t" , "helowa" );
1178
1178
1179
1179
Map .Entry <SearchResult , Map <String , Object >> profile = client .ftProfileSearch (index ,
1180
1180
FTProfileParams .profileParams ().limited (), "%hell% hel*" , FTSearchParams .searchParams ().noContent ());
0 commit comments