fix indexing of arrays
This commit is contained in:
parent
16270b46cf
commit
974e264f50
|
@ -133,20 +133,12 @@
|
||||||
/>
|
/>
|
||||||
{:else if ["string", "longform", "number"].includes(filter.type)}
|
{:else if ["string", "longform", "number"].includes(filter.type)}
|
||||||
<Input disabled={filter.noValue} bind:value={filter.value} />
|
<Input disabled={filter.noValue} bind:value={filter.value} />
|
||||||
{:else if filter.type === "options"}
|
{:else if filter.type === "options" || "array"}
|
||||||
<Combobox
|
<Combobox
|
||||||
disabled={filter.noValue}
|
disabled={filter.noValue}
|
||||||
options={getFieldOptions(filter.field)}
|
options={getFieldOptions(filter.field)}
|
||||||
bind:value={filter.value}
|
bind:value={filter.value}
|
||||||
/>
|
/>
|
||||||
{:else if filter.type === "array"}
|
|
||||||
<Multiselect
|
|
||||||
disabled={filter.noValue}
|
|
||||||
options={getFieldOptions(filter.field)}
|
|
||||||
bind:value={filter.value}
|
|
||||||
getOptionLabel={x => x}
|
|
||||||
getOptionValue={x => x}
|
|
||||||
/>
|
|
||||||
{:else if filter.type === "boolean"}
|
{:else if filter.type === "boolean"}
|
||||||
<Combobox
|
<Combobox
|
||||||
disabled={filter.noValue}
|
disabled={filter.noValue}
|
||||||
|
|
|
@ -229,10 +229,7 @@ class QueryBuilder {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
return `${key}.${value}:${builder.preprocess(
|
return `${key}:${builder.preprocess(value, allPreProcessingOpts)}`
|
||||||
value,
|
|
||||||
allPreProcessingOpts
|
|
||||||
)}`
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ exports.createAllSearchIndex = async appId => {
|
||||||
if (Array.isArray(input[key])) {
|
if (Array.isArray(input[key])) {
|
||||||
for (let val in input[key]) {
|
for (let val in input[key]) {
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
index(`${idxKey}.${input[key][val]}`, input[key][val], {
|
index(`${idxKey}`, input[key][val], {
|
||||||
store: true,
|
store: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue