+
+ {queryResults.map((result) => {
+ const fields = new Set
()
+ Object.keys(result.matchData.metadata).forEach((term) => {
+ Object.keys(result.matchData.metadata[term]).forEach((field) => {
+ fields.add(field)
+ })
+ })
+
+ const found = Array.from(fields).map((field, index) => (
+
+ {field}
+
+ ))
+ const item = (
+
+
+
{db[result.ref].title}
+
+
+ Match found in:
+
+ {found}
+
+
+
+
+ )
+ return item
+ })}
+
+
+ {queryResults.length == 0 && (
+
+ )}
+
+