Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
Grievance
Commits
e22cc3f5
Commit
e22cc3f5
authored
1 year ago
by
shishir suman
Browse files
Options
Download
Patches
Plain Diff
bug fixes
parent
2df0e155
main
Escalate_ticket_send_mail_to_raiser
UAT
UPHRH_7903_mobile_otp
UPHRH_quartz_scheduler
admin_config_changes
github/fork/vky25/patch-1
rahu_test
shishir_dynamic_schedular
shishir_ticket_statistics_by_user
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/upsmf/grievance/service/impl/SearchServiceImpl.java
+1
-1
...a/org/upsmf/grievance/service/impl/SearchServiceImpl.java
with
1 addition
and
1 deletion
+1
-1
src/main/java/org/upsmf/grievance/service/impl/SearchServiceImpl.java
+
1
−
1
View file @
e22cc3f5
...
...
@@ -503,7 +503,7 @@ public class SearchServiceImpl implements SearchService {
RegexpQueryBuilder
phoneKeywordMatchQuery
=
QueryBuilders
.
regexpQuery
(
"requester_phone"
,
".*"
+
searchRequest
.
getSearchKeyword
().
toLowerCase
()
+
".*"
);
RegexpQueryBuilder
emailKeywordMatchQuery
=
QueryBuilders
.
regexpQuery
(
"requester_email"
,
".*"
+
searchRequest
.
getSearchKeyword
().
toLowerCase
()
+
".*"
);
RegexpQueryBuilder
escalatedDateKeywordMatchQuery
=
QueryBuilders
.
regexpQuery
(
"escalated_date"
,
".*"
+
searchRequest
.
getSearchKeyword
().
toLowerCase
()
+
".*"
);
Regexp
QueryBuilder
requesterTypeKeywordMatchQuery
=
QueryBuilders
.
regexp
Query
(
"requester_type"
,
"
.
*"
+
searchRequest
.
getSearchKeyword
().
toUpperCase
()
+
".
*"
);
Wildcard
QueryBuilder
requesterTypeKeywordMatchQuery
=
QueryBuilders
.
wildcard
Query
(
"requester_type
.keyword
"
,
"*"
+
searchRequest
.
getSearchKeyword
().
toUpperCase
()
+
"
*"
);
RegexpQueryBuilder
createdDateKeywordMatchQuery
=
QueryBuilders
.
regexpQuery
(
"created_date"
,
".*"
+
searchRequest
.
getSearchKeyword
().
toLowerCase
()
+
".*"
);
BoolQueryBuilder
keywordSearchQuery
=
QueryBuilders
.
boolQuery
();
keywordSearchQuery
.
should
(
lastNameKeywordMatchQuery
).
should
(
escalatedDateKeywordMatchQuery
).
should
(
requesterTypeKeywordMatchQuery
).
should
(
createdDateKeywordMatchQuery
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets