/
BsBoostDocumentRuleCQ.java
1627 lines (1329 loc) · 56.7 KB
/
BsBoostDocumentRuleCQ.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright 2012-2024 CodeLibs Project and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.codelibs.fess.es.config.cbean.cq.bs;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collection;
import org.codelibs.fess.es.config.allcommon.EsAbstractConditionQuery;
import org.codelibs.fess.es.config.cbean.cq.BoostDocumentRuleCQ;
import org.dbflute.cbean.ckey.ConditionKey;
import org.opensearch.index.query.BoolQueryBuilder;
import org.opensearch.index.query.CommonTermsQueryBuilder;
import org.opensearch.index.query.ExistsQueryBuilder;
import org.opensearch.index.query.IdsQueryBuilder;
import org.opensearch.index.query.MatchPhrasePrefixQueryBuilder;
import org.opensearch.index.query.MatchPhraseQueryBuilder;
import org.opensearch.index.query.MatchQueryBuilder;
import org.opensearch.index.query.PrefixQueryBuilder;
import org.opensearch.index.query.RangeQueryBuilder;
import org.opensearch.index.query.RegexpQueryBuilder;
import org.opensearch.index.query.SpanTermQueryBuilder;
import org.opensearch.index.query.TermQueryBuilder;
import org.opensearch.index.query.TermsQueryBuilder;
import org.opensearch.index.query.WildcardQueryBuilder;
import org.opensearch.index.query.functionscore.FunctionScoreQueryBuilder;
import org.opensearch.index.query.functionscore.FunctionScoreQueryBuilder.FilterFunctionBuilder;
/**
* @author ESFlute (using FreeGen)
*/
public abstract class BsBoostDocumentRuleCQ extends EsAbstractConditionQuery {
protected static final Class<?> suppressUnusedImportLocalDateTime = LocalDateTime.class;
// ===================================================================================
// Name Override
// =============
@Override
public String asTableDbName() {
return "boost_document_rule";
}
@Override
public String xgetAliasName() {
return "boost_document_rule";
}
// ===================================================================================
// Query Control
// =============
public void functionScore(OperatorCall<BoostDocumentRuleCQ> queryLambda,
ScoreFunctionCall<ScoreFunctionCreator<BoostDocumentRuleCQ>> functionsLambda,
final ConditionOptionCall<FunctionScoreQueryBuilder> opLambda) {
BoostDocumentRuleCQ cq = new BoostDocumentRuleCQ();
queryLambda.callback(cq);
final Collection<FilterFunctionBuilder> list = new ArrayList<>();
if (functionsLambda != null) {
functionsLambda.callback((cqLambda, scoreFunctionBuilder) -> {
BoostDocumentRuleCQ cf = new BoostDocumentRuleCQ();
cqLambda.callback(cf);
list.add(new FilterFunctionBuilder(cf.getQuery(), scoreFunctionBuilder));
});
}
final FunctionScoreQueryBuilder builder = regFunctionScoreQ(cq.getQuery(), list);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void filtered(FilteredCall<BoostDocumentRuleCQ, BoostDocumentRuleCQ> filteredLambda) {
filtered(filteredLambda, null);
}
public void filtered(FilteredCall<BoostDocumentRuleCQ, BoostDocumentRuleCQ> filteredLambda,
ConditionOptionCall<BoolQueryBuilder> opLambda) {
bool((must, should, mustNot, filter) -> {
filteredLambda.callback(must, filter);
}, opLambda);
}
public void not(OperatorCall<BoostDocumentRuleCQ> notLambda) {
not(notLambda, null);
}
public void not(final OperatorCall<BoostDocumentRuleCQ> notLambda, final ConditionOptionCall<BoolQueryBuilder> opLambda) {
bool((must, should, mustNot, filter) -> notLambda.callback(mustNot), opLambda);
}
public void bool(BoolCall<BoostDocumentRuleCQ> boolLambda) {
bool(boolLambda, null);
}
public void bool(BoolCall<BoostDocumentRuleCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
BoostDocumentRuleCQ mustQuery = new BoostDocumentRuleCQ();
BoostDocumentRuleCQ shouldQuery = new BoostDocumentRuleCQ();
BoostDocumentRuleCQ mustNotQuery = new BoostDocumentRuleCQ();
BoostDocumentRuleCQ filterQuery = new BoostDocumentRuleCQ();
boolLambda.callback(mustQuery, shouldQuery, mustNotQuery, filterQuery);
if (mustQuery.hasQueries() || shouldQuery.hasQueries() || mustNotQuery.hasQueries() || filterQuery.hasQueries()) {
BoolQueryBuilder builder = regBoolCQ(mustQuery.getQueryBuilderList(), shouldQuery.getQueryBuilderList(),
mustNotQuery.getQueryBuilderList(), filterQuery.getQueryBuilderList());
if (opLambda != null) {
opLambda.callback(builder);
}
}
}
// ===================================================================================
// Query Set
// =========
public void setId_Equal(String id) {
setId_Term(id, null);
}
public void setId_Equal(String id, ConditionOptionCall<TermQueryBuilder> opLambda) {
setId_Term(id, opLambda);
}
public void setId_Term(String id) {
setId_Term(id, null);
}
public void setId_Term(String id, ConditionOptionCall<TermQueryBuilder> opLambda) {
TermQueryBuilder builder = regTermQ("_id", id);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setId_NotEqual(String id) {
setId_NotTerm(id, null);
}
public void setId_NotTerm(String id) {
setId_NotTerm(id, null);
}
public void setId_NotEqual(String id, ConditionOptionCall<BoolQueryBuilder> opLambda) {
setId_NotTerm(id, opLambda);
}
public void setId_NotTerm(String id, ConditionOptionCall<BoolQueryBuilder> opLambda) {
not(not -> not.setId_Term(id), opLambda);
}
public void setId_Terms(Collection<String> idList) {
setId_Terms(idList, null);
}
public void setId_Terms(Collection<String> idList, ConditionOptionCall<IdsQueryBuilder> opLambda) {
IdsQueryBuilder builder = regIdsQ(idList);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setId_InScope(Collection<String> idList) {
setId_Terms(idList, null);
}
public void setId_InScope(Collection<String> idList, ConditionOptionCall<IdsQueryBuilder> opLambda) {
setId_Terms(idList, opLambda);
}
@Deprecated
public BsBoostDocumentRuleCQ addOrderBy_Id_Asc() {
regOBA("_id");
return this;
}
@Deprecated
public BsBoostDocumentRuleCQ addOrderBy_Id_Desc() {
regOBD("_id");
return this;
}
public void setBoostExpr_Equal(String boostExpr) {
setBoostExpr_Term(boostExpr, null);
}
public void setBoostExpr_Equal(String boostExpr, ConditionOptionCall<TermQueryBuilder> opLambda) {
setBoostExpr_Term(boostExpr, opLambda);
}
public void setBoostExpr_Term(String boostExpr) {
setBoostExpr_Term(boostExpr, null);
}
public void setBoostExpr_Term(String boostExpr, ConditionOptionCall<TermQueryBuilder> opLambda) {
TermQueryBuilder builder = regTermQ("boostExpr", boostExpr);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_NotEqual(String boostExpr) {
setBoostExpr_NotTerm(boostExpr, null);
}
public void setBoostExpr_NotTerm(String boostExpr) {
setBoostExpr_NotTerm(boostExpr, null);
}
public void setBoostExpr_NotEqual(String boostExpr, ConditionOptionCall<BoolQueryBuilder> opLambda) {
setBoostExpr_NotTerm(boostExpr, opLambda);
}
public void setBoostExpr_NotTerm(String boostExpr, ConditionOptionCall<BoolQueryBuilder> opLambda) {
not(not -> not.setBoostExpr_Term(boostExpr), opLambda);
}
public void setBoostExpr_Terms(Collection<String> boostExprList) {
setBoostExpr_Terms(boostExprList, null);
}
public void setBoostExpr_Terms(Collection<String> boostExprList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
TermsQueryBuilder builder = regTermsQ("boostExpr", boostExprList);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_InScope(Collection<String> boostExprList) {
setBoostExpr_Terms(boostExprList, null);
}
public void setBoostExpr_InScope(Collection<String> boostExprList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
setBoostExpr_Terms(boostExprList, opLambda);
}
public void setBoostExpr_Match(String boostExpr) {
setBoostExpr_Match(boostExpr, null);
}
public void setBoostExpr_Match(String boostExpr, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regMatchQ("boostExpr", boostExpr);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_MatchPhrase(String boostExpr) {
setBoostExpr_MatchPhrase(boostExpr, null);
}
public void setBoostExpr_MatchPhrase(String boostExpr, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
MatchPhraseQueryBuilder builder = regMatchPhraseQ("boostExpr", boostExpr);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_MatchPhrasePrefix(String boostExpr) {
setBoostExpr_MatchPhrasePrefix(boostExpr, null);
}
public void setBoostExpr_MatchPhrasePrefix(String boostExpr, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("boostExpr", boostExpr);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_Fuzzy(String boostExpr) {
setBoostExpr_Fuzzy(boostExpr, null);
}
public void setBoostExpr_Fuzzy(String boostExpr, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regFuzzyQ("boostExpr", boostExpr);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_Prefix(String boostExpr) {
setBoostExpr_Prefix(boostExpr, null);
}
public void setBoostExpr_Prefix(String boostExpr, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
PrefixQueryBuilder builder = regPrefixQ("boostExpr", boostExpr);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_Wildcard(String boostExpr) {
setBoostExpr_Wildcard(boostExpr, null);
}
public void setBoostExpr_Wildcard(String boostExpr, ConditionOptionCall<WildcardQueryBuilder> opLambda) {
WildcardQueryBuilder builder = regWildcardQ("boostExpr", boostExpr);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_Regexp(String boostExpr) {
setBoostExpr_Regexp(boostExpr, null);
}
public void setBoostExpr_Regexp(String boostExpr, ConditionOptionCall<RegexpQueryBuilder> opLambda) {
RegexpQueryBuilder builder = regRegexpQ("boostExpr", boostExpr);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_SpanTerm(String boostExpr) {
setBoostExpr_SpanTerm("boostExpr", null);
}
public void setBoostExpr_SpanTerm(String boostExpr, ConditionOptionCall<SpanTermQueryBuilder> opLambda) {
SpanTermQueryBuilder builder = regSpanTermQ("boostExpr", boostExpr);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_GreaterThan(String boostExpr) {
setBoostExpr_GreaterThan(boostExpr, null);
}
public void setBoostExpr_GreaterThan(String boostExpr, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = boostExpr;
RangeQueryBuilder builder = regRangeQ("boostExpr", ConditionKey.CK_GREATER_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_LessThan(String boostExpr) {
setBoostExpr_LessThan(boostExpr, null);
}
public void setBoostExpr_LessThan(String boostExpr, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = boostExpr;
RangeQueryBuilder builder = regRangeQ("boostExpr", ConditionKey.CK_LESS_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_GreaterEqual(String boostExpr) {
setBoostExpr_GreaterEqual(boostExpr, null);
}
public void setBoostExpr_GreaterEqual(String boostExpr, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = boostExpr;
RangeQueryBuilder builder = regRangeQ("boostExpr", ConditionKey.CK_GREATER_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_LessEqual(String boostExpr) {
setBoostExpr_LessEqual(boostExpr, null);
}
public void setBoostExpr_LessEqual(String boostExpr, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = boostExpr;
RangeQueryBuilder builder = regRangeQ("boostExpr", ConditionKey.CK_LESS_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setBoostExpr_Exists() {
setBoostExpr_Exists(null);
}
public void setBoostExpr_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
ExistsQueryBuilder builder = regExistsQ("boostExpr");
if (opLambda != null) {
opLambda.callback(builder);
}
}
@Deprecated
public void setBoostExpr_CommonTerms(String boostExpr) {
setBoostExpr_CommonTerms(boostExpr, null);
}
@Deprecated
public void setBoostExpr_CommonTerms(String boostExpr, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
CommonTermsQueryBuilder builder = regCommonTermsQ("boostExpr", boostExpr);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public BsBoostDocumentRuleCQ addOrderBy_BoostExpr_Asc() {
regOBA("boostExpr");
return this;
}
public BsBoostDocumentRuleCQ addOrderBy_BoostExpr_Desc() {
regOBD("boostExpr");
return this;
}
public void setCreatedBy_Equal(String createdBy) {
setCreatedBy_Term(createdBy, null);
}
public void setCreatedBy_Equal(String createdBy, ConditionOptionCall<TermQueryBuilder> opLambda) {
setCreatedBy_Term(createdBy, opLambda);
}
public void setCreatedBy_Term(String createdBy) {
setCreatedBy_Term(createdBy, null);
}
public void setCreatedBy_Term(String createdBy, ConditionOptionCall<TermQueryBuilder> opLambda) {
TermQueryBuilder builder = regTermQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_NotEqual(String createdBy) {
setCreatedBy_NotTerm(createdBy, null);
}
public void setCreatedBy_NotTerm(String createdBy) {
setCreatedBy_NotTerm(createdBy, null);
}
public void setCreatedBy_NotEqual(String createdBy, ConditionOptionCall<BoolQueryBuilder> opLambda) {
setCreatedBy_NotTerm(createdBy, opLambda);
}
public void setCreatedBy_NotTerm(String createdBy, ConditionOptionCall<BoolQueryBuilder> opLambda) {
not(not -> not.setCreatedBy_Term(createdBy), opLambda);
}
public void setCreatedBy_Terms(Collection<String> createdByList) {
setCreatedBy_Terms(createdByList, null);
}
public void setCreatedBy_Terms(Collection<String> createdByList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
TermsQueryBuilder builder = regTermsQ("createdBy", createdByList);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_InScope(Collection<String> createdByList) {
setCreatedBy_Terms(createdByList, null);
}
public void setCreatedBy_InScope(Collection<String> createdByList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
setCreatedBy_Terms(createdByList, opLambda);
}
public void setCreatedBy_Match(String createdBy) {
setCreatedBy_Match(createdBy, null);
}
public void setCreatedBy_Match(String createdBy, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regMatchQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_MatchPhrase(String createdBy) {
setCreatedBy_MatchPhrase(createdBy, null);
}
public void setCreatedBy_MatchPhrase(String createdBy, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
MatchPhraseQueryBuilder builder = regMatchPhraseQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_MatchPhrasePrefix(String createdBy) {
setCreatedBy_MatchPhrasePrefix(createdBy, null);
}
public void setCreatedBy_MatchPhrasePrefix(String createdBy, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_Fuzzy(String createdBy) {
setCreatedBy_Fuzzy(createdBy, null);
}
public void setCreatedBy_Fuzzy(String createdBy, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regFuzzyQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_Prefix(String createdBy) {
setCreatedBy_Prefix(createdBy, null);
}
public void setCreatedBy_Prefix(String createdBy, ConditionOptionCall<PrefixQueryBuilder> opLambda) {
PrefixQueryBuilder builder = regPrefixQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_Wildcard(String createdBy) {
setCreatedBy_Wildcard(createdBy, null);
}
public void setCreatedBy_Wildcard(String createdBy, ConditionOptionCall<WildcardQueryBuilder> opLambda) {
WildcardQueryBuilder builder = regWildcardQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_Regexp(String createdBy) {
setCreatedBy_Regexp(createdBy, null);
}
public void setCreatedBy_Regexp(String createdBy, ConditionOptionCall<RegexpQueryBuilder> opLambda) {
RegexpQueryBuilder builder = regRegexpQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_SpanTerm(String createdBy) {
setCreatedBy_SpanTerm("createdBy", null);
}
public void setCreatedBy_SpanTerm(String createdBy, ConditionOptionCall<SpanTermQueryBuilder> opLambda) {
SpanTermQueryBuilder builder = regSpanTermQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_GreaterThan(String createdBy) {
setCreatedBy_GreaterThan(createdBy, null);
}
public void setCreatedBy_GreaterThan(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdBy;
RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_GREATER_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_LessThan(String createdBy) {
setCreatedBy_LessThan(createdBy, null);
}
public void setCreatedBy_LessThan(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdBy;
RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_LESS_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_GreaterEqual(String createdBy) {
setCreatedBy_GreaterEqual(createdBy, null);
}
public void setCreatedBy_GreaterEqual(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdBy;
RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_GREATER_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_LessEqual(String createdBy) {
setCreatedBy_LessEqual(createdBy, null);
}
public void setCreatedBy_LessEqual(String createdBy, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdBy;
RangeQueryBuilder builder = regRangeQ("createdBy", ConditionKey.CK_LESS_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedBy_Exists() {
setCreatedBy_Exists(null);
}
public void setCreatedBy_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
ExistsQueryBuilder builder = regExistsQ("createdBy");
if (opLambda != null) {
opLambda.callback(builder);
}
}
@Deprecated
public void setCreatedBy_CommonTerms(String createdBy) {
setCreatedBy_CommonTerms(createdBy, null);
}
@Deprecated
public void setCreatedBy_CommonTerms(String createdBy, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
CommonTermsQueryBuilder builder = regCommonTermsQ("createdBy", createdBy);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public BsBoostDocumentRuleCQ addOrderBy_CreatedBy_Asc() {
regOBA("createdBy");
return this;
}
public BsBoostDocumentRuleCQ addOrderBy_CreatedBy_Desc() {
regOBD("createdBy");
return this;
}
public void setCreatedTime_Equal(Long createdTime) {
setCreatedTime_Term(createdTime, null);
}
public void setCreatedTime_Equal(Long createdTime, ConditionOptionCall<TermQueryBuilder> opLambda) {
setCreatedTime_Term(createdTime, opLambda);
}
public void setCreatedTime_Term(Long createdTime) {
setCreatedTime_Term(createdTime, null);
}
public void setCreatedTime_Term(Long createdTime, ConditionOptionCall<TermQueryBuilder> opLambda) {
TermQueryBuilder builder = regTermQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_NotEqual(Long createdTime) {
setCreatedTime_NotTerm(createdTime, null);
}
public void setCreatedTime_NotTerm(Long createdTime) {
setCreatedTime_NotTerm(createdTime, null);
}
public void setCreatedTime_NotEqual(Long createdTime, ConditionOptionCall<BoolQueryBuilder> opLambda) {
setCreatedTime_NotTerm(createdTime, opLambda);
}
public void setCreatedTime_NotTerm(Long createdTime, ConditionOptionCall<BoolQueryBuilder> opLambda) {
not(not -> not.setCreatedTime_Term(createdTime), opLambda);
}
public void setCreatedTime_Terms(Collection<Long> createdTimeList) {
setCreatedTime_Terms(createdTimeList, null);
}
public void setCreatedTime_Terms(Collection<Long> createdTimeList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
TermsQueryBuilder builder = regTermsQ("createdTime", createdTimeList);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_InScope(Collection<Long> createdTimeList) {
setCreatedTime_Terms(createdTimeList, null);
}
public void setCreatedTime_InScope(Collection<Long> createdTimeList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
setCreatedTime_Terms(createdTimeList, opLambda);
}
public void setCreatedTime_Match(Long createdTime) {
setCreatedTime_Match(createdTime, null);
}
public void setCreatedTime_Match(Long createdTime, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regMatchQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_MatchPhrase(Long createdTime) {
setCreatedTime_MatchPhrase(createdTime, null);
}
public void setCreatedTime_MatchPhrase(Long createdTime, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
MatchPhraseQueryBuilder builder = regMatchPhraseQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_MatchPhrasePrefix(Long createdTime) {
setCreatedTime_MatchPhrasePrefix(createdTime, null);
}
public void setCreatedTime_MatchPhrasePrefix(Long createdTime, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_Fuzzy(Long createdTime) {
setCreatedTime_Fuzzy(createdTime, null);
}
public void setCreatedTime_Fuzzy(Long createdTime, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regFuzzyQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_GreaterThan(Long createdTime) {
setCreatedTime_GreaterThan(createdTime, null);
}
public void setCreatedTime_GreaterThan(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdTime;
RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_GREATER_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_LessThan(Long createdTime) {
setCreatedTime_LessThan(createdTime, null);
}
public void setCreatedTime_LessThan(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdTime;
RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_LESS_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_GreaterEqual(Long createdTime) {
setCreatedTime_GreaterEqual(createdTime, null);
}
public void setCreatedTime_GreaterEqual(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdTime;
RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_GREATER_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_LessEqual(Long createdTime) {
setCreatedTime_LessEqual(createdTime, null);
}
public void setCreatedTime_LessEqual(Long createdTime, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = createdTime;
RangeQueryBuilder builder = regRangeQ("createdTime", ConditionKey.CK_LESS_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setCreatedTime_Exists() {
setCreatedTime_Exists(null);
}
public void setCreatedTime_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
ExistsQueryBuilder builder = regExistsQ("createdTime");
if (opLambda != null) {
opLambda.callback(builder);
}
}
@Deprecated
public void setCreatedTime_CommonTerms(Long createdTime) {
setCreatedTime_CommonTerms(createdTime, null);
}
@Deprecated
public void setCreatedTime_CommonTerms(Long createdTime, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
CommonTermsQueryBuilder builder = regCommonTermsQ("createdTime", createdTime);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public BsBoostDocumentRuleCQ addOrderBy_CreatedTime_Asc() {
regOBA("createdTime");
return this;
}
public BsBoostDocumentRuleCQ addOrderBy_CreatedTime_Desc() {
regOBD("createdTime");
return this;
}
public void setSortOrder_Equal(Integer sortOrder) {
setSortOrder_Term(sortOrder, null);
}
public void setSortOrder_Equal(Integer sortOrder, ConditionOptionCall<TermQueryBuilder> opLambda) {
setSortOrder_Term(sortOrder, opLambda);
}
public void setSortOrder_Term(Integer sortOrder) {
setSortOrder_Term(sortOrder, null);
}
public void setSortOrder_Term(Integer sortOrder, ConditionOptionCall<TermQueryBuilder> opLambda) {
TermQueryBuilder builder = regTermQ("sortOrder", sortOrder);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setSortOrder_NotEqual(Integer sortOrder) {
setSortOrder_NotTerm(sortOrder, null);
}
public void setSortOrder_NotTerm(Integer sortOrder) {
setSortOrder_NotTerm(sortOrder, null);
}
public void setSortOrder_NotEqual(Integer sortOrder, ConditionOptionCall<BoolQueryBuilder> opLambda) {
setSortOrder_NotTerm(sortOrder, opLambda);
}
public void setSortOrder_NotTerm(Integer sortOrder, ConditionOptionCall<BoolQueryBuilder> opLambda) {
not(not -> not.setSortOrder_Term(sortOrder), opLambda);
}
public void setSortOrder_Terms(Collection<Integer> sortOrderList) {
setSortOrder_Terms(sortOrderList, null);
}
public void setSortOrder_Terms(Collection<Integer> sortOrderList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
TermsQueryBuilder builder = regTermsQ("sortOrder", sortOrderList);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setSortOrder_InScope(Collection<Integer> sortOrderList) {
setSortOrder_Terms(sortOrderList, null);
}
public void setSortOrder_InScope(Collection<Integer> sortOrderList, ConditionOptionCall<TermsQueryBuilder> opLambda) {
setSortOrder_Terms(sortOrderList, opLambda);
}
public void setSortOrder_Match(Integer sortOrder) {
setSortOrder_Match(sortOrder, null);
}
public void setSortOrder_Match(Integer sortOrder, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regMatchQ("sortOrder", sortOrder);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setSortOrder_MatchPhrase(Integer sortOrder) {
setSortOrder_MatchPhrase(sortOrder, null);
}
public void setSortOrder_MatchPhrase(Integer sortOrder, ConditionOptionCall<MatchPhraseQueryBuilder> opLambda) {
MatchPhraseQueryBuilder builder = regMatchPhraseQ("sortOrder", sortOrder);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setSortOrder_MatchPhrasePrefix(Integer sortOrder) {
setSortOrder_MatchPhrasePrefix(sortOrder, null);
}
public void setSortOrder_MatchPhrasePrefix(Integer sortOrder, ConditionOptionCall<MatchPhrasePrefixQueryBuilder> opLambda) {
MatchPhrasePrefixQueryBuilder builder = regMatchPhrasePrefixQ("sortOrder", sortOrder);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setSortOrder_Fuzzy(Integer sortOrder) {
setSortOrder_Fuzzy(sortOrder, null);
}
public void setSortOrder_Fuzzy(Integer sortOrder, ConditionOptionCall<MatchQueryBuilder> opLambda) {
MatchQueryBuilder builder = regFuzzyQ("sortOrder", sortOrder);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setSortOrder_GreaterThan(Integer sortOrder) {
setSortOrder_GreaterThan(sortOrder, null);
}
public void setSortOrder_GreaterThan(Integer sortOrder, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = sortOrder;
RangeQueryBuilder builder = regRangeQ("sortOrder", ConditionKey.CK_GREATER_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setSortOrder_LessThan(Integer sortOrder) {
setSortOrder_LessThan(sortOrder, null);
}
public void setSortOrder_LessThan(Integer sortOrder, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = sortOrder;
RangeQueryBuilder builder = regRangeQ("sortOrder", ConditionKey.CK_LESS_THAN, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setSortOrder_GreaterEqual(Integer sortOrder) {
setSortOrder_GreaterEqual(sortOrder, null);
}
public void setSortOrder_GreaterEqual(Integer sortOrder, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = sortOrder;
RangeQueryBuilder builder = regRangeQ("sortOrder", ConditionKey.CK_GREATER_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setSortOrder_LessEqual(Integer sortOrder) {
setSortOrder_LessEqual(sortOrder, null);
}
public void setSortOrder_LessEqual(Integer sortOrder, ConditionOptionCall<RangeQueryBuilder> opLambda) {
final Object _value = sortOrder;
RangeQueryBuilder builder = regRangeQ("sortOrder", ConditionKey.CK_LESS_EQUAL, _value);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public void setSortOrder_Exists() {
setSortOrder_Exists(null);
}
public void setSortOrder_Exists(ConditionOptionCall<ExistsQueryBuilder> opLambda) {
ExistsQueryBuilder builder = regExistsQ("sortOrder");
if (opLambda != null) {
opLambda.callback(builder);
}
}
@Deprecated
public void setSortOrder_CommonTerms(Integer sortOrder) {
setSortOrder_CommonTerms(sortOrder, null);
}
@Deprecated
public void setSortOrder_CommonTerms(Integer sortOrder, ConditionOptionCall<CommonTermsQueryBuilder> opLambda) {
CommonTermsQueryBuilder builder = regCommonTermsQ("sortOrder", sortOrder);
if (opLambda != null) {
opLambda.callback(builder);
}
}
public BsBoostDocumentRuleCQ addOrderBy_SortOrder_Asc() {
regOBA("sortOrder");
return this;
}
public BsBoostDocumentRuleCQ addOrderBy_SortOrder_Desc() {
regOBD("sortOrder");
return this;
}
public void setUpdatedBy_Equal(String updatedBy) {
setUpdatedBy_Term(updatedBy, null);