Skip to content

Commit 2ade65b

Browse files
committed
Change separator
1 parent fafb3a6 commit 2ade65b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/services/search_item_req.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def facets
113113
facet = original.split("[")[0]
114114
path = facet.split(".").first
115115
condition = original[/(?<=\[).+?(?=\])/]
116-
subject = condition.split("|").first
117-
predicate = condition.split("|").last
116+
subject = condition.split("#").first
117+
predicate = condition.split("#").last
118118
aggs[agg_name] = {
119119
"nested" => {
120120
"path" => path
@@ -212,8 +212,8 @@ def filters
212212
facet = original.split("[")[0]
213213
path = facet.split(".").first
214214
condition = original[/(?<=\[).+?(?=\])/]
215-
subject = condition.split("|").first
216-
predicate = condition.split("|").last
215+
subject = condition.split("#").first
216+
predicate = condition.split("#").last
217217
# this is a nested field and must be treated differently
218218
nested = {
219219
"nested" => {

0 commit comments

Comments
 (0)