1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

fix indexing of arrays

This commit is contained in:
Peter Clement 2021-08-26 14:22:52 +01:00
parent 16270b46cf
commit 974e264f50
3 changed files with 3 additions and 14 deletions

View file

@ -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}

View file

@ -229,10 +229,7 @@ class QueryBuilder {
if (!value) {
return null
}
return `${key}.${value}:${builder.preprocess(
value,
allPreProcessingOpts
)}`
return `${key}:${builder.preprocess(value, allPreProcessingOpts)}`
})
}

View file

@ -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,
})
}