Dataloom files are now always indexed

This commit is contained in:
Simon Cambier
2023-07-23 10:28:54 +02:00
parent 698a558770
commit ad5f84d826
2 changed files with 24 additions and 45 deletions

View File

@@ -20,7 +20,6 @@ import {
import type { CanvasData } from 'obsidian/canvas'
import type { AsPlainObject } from 'minisearch'
import type MiniSearch from 'minisearch'
import { settings } from './settings'
/**
* This function is responsible for extracting the text from a file and
@@ -62,7 +61,7 @@ async function getAndMapIndexedDocument(
}
// ** Dataloom plugin **
else if (settings.dataloomIndexing && isFileFromDataloomPlugin(path)) {
else if (isFileFromDataloomPlugin(path)) {
try {
const data = JSON.parse(await app.vault.cachedRead(file))
// data is a json object, we recursively iterate the keys