Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Utils/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ export const getGQLFilter = (filterObj) => {
// This filter only has a combine setting so far. We can ignore it.
return;
} else {
// eslint-disable-next-line no-console
console.error(filterValues);
throw new Error('Invalid filter object');
}
Expand Down
9 changes: 8 additions & 1 deletion src/server/es/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,14 @@ class ES {
}
const fields = doc._source.array;
fields.forEach((field) => {
if (!this.fieldTypes[index][field]) {
const fieldArr = field.split('.');
if (!(this.fieldTypes[index][field]
|| (
fieldArr.length > 1
&& _.has(this.fieldTypes[index],
fieldArr.join('.properties.'))
)
)) {
const errMsg = `[ES.initialize] wrong array entry from config: field "${field}" not found in index ${index}, skipped.`;
log.error(errMsg);
return;
Expand Down