We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 65d2e9f + 1fb4162 commit 18784c1Copy full SHA for 18784c1
โbackend/src/controllers/search.controller.jsโ
@@ -224,16 +224,6 @@ const commonSort = [
224
type: "number",
225
script: {
226
lang: "painless",
227
- source: `
228
- if (doc['end_date'].size() == 0) return 20; // ์์
229
-
230
- long end = doc['end_date'].value.toInstant().toEpochMilli();
231
232
- if (end < params.now) return 30; // ๋ง๊ฐ
233
- if (end >= params.dayStart && end <= params.dayEnd) return 0; // ์ค๋
234
- return 10; // ๋ฏธ๋
235
- `
236
-/*
237
source: `
238
if (doc['end_date'].size() == 0) return 2; // ์์
239
@@ -247,7 +237,7 @@ const commonSort = [
247
248
// ๋ฏธ๋ ๋ง๊ฐ
249
return 1;
250
- `,*/,
240
+ `,
251
241
params: getSortParams()
252
242
},
253
243
order: "asc"
0 commit comments