Skip to content

Commit b8c7e2e

Browse files
authored
PI-2876 Re-add simple query string flags (#820)
* PI-2876 Re-add simple query string flags * PI-2876 Re-add simple query string flags
1 parent 1fe5547 commit b8c7e2e

File tree

2 files changed

+458
-457
lines changed

2 files changed

+458
-457
lines changed

src/main/kotlin/uk/gov/justice/hmpps/probationsearch/contactsearch/ContactSearchService.kt

+1
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ class ContactSearchService(
170170
.analyzeWildcard(true)
171171
.defaultOperator(if (request.matchAllTerms) JavaClientOperator.And else JavaClientOperator.Or)
172172
.fields("notes", "type", "outcome", "description")
173+
.flags { it.multiple("AND|OR|PREFIX|PHRASE|PRECEDENCE|ESCAPE|FUZZY|SLOP") }
173174
}
174175
} else {
175176
MatchQuery.of { match -> match.field("crn").query { it.stringValue(request.crn) } }

0 commit comments

Comments
 (0)