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