fix indexing of arrays

This commit is contained in:
Peter Clement 2021-08-26 14:22:52 +01:00
parent 4fa36727e4
commit 1ab618c2ef
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,
})
}