aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/SearchBox.tsx3
-rw-r--r--src/server/Search.ts4
-rw-r--r--src/server/index.ts1
3 files changed, 7 insertions, 1 deletions
diff --git a/src/client/views/SearchBox.tsx b/src/client/views/SearchBox.tsx
index 134201071..6e64e1af1 100644
--- a/src/client/views/SearchBox.tsx
+++ b/src/client/views/SearchBox.tsx
@@ -140,6 +140,9 @@ export class SearchBox extends React.Component {
return Docs.FreeformDocument(docs, { width: 400, height: 400, panX: 175, panY: 175, title: `Search Docs: "${this.searchString}"` });
}
+ // Useful queries:
+ // Delegates of a document: {!join from=id to=proto_i}id:{protoId}
+ // Documents in a collection: {!join from=data_l to=id}id:{collectionProtoId}
render() {
return (
<div>
diff --git a/src/server/Search.ts b/src/server/Search.ts
index 1bede5b49..0f7004bdf 100644
--- a/src/server/Search.ts
+++ b/src/server/Search.ts
@@ -13,7 +13,9 @@ export class Search {
body: JSON.stringify([document])
});
return res;
- } catch (e) { }
+ } catch (e) {
+ console.warn("Search error: " + e + document);
+ }
}
public async search(query: string) {
diff --git a/src/server/index.ts b/src/server/index.ts
index e5cc3ce68..da6bc0165 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -298,6 +298,7 @@ function GetRefFields([ids, callback]: [string[], (result?: Transferable[]) => v
const suffixMap: { [type: string]: (string | [string, string | ((json: any) => any)]) } = {
"number": "_n",
"string": "_t",
+ // "boolean": "_b",
"image": ["_t", "url"],
"video": ["_t", "url"],
"pdf": ["_t", "url"],