aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search/SearchBox.tsx
diff options
context:
space:
mode:
authormadelinegr <monika_hedman@brown.edu>2019-06-14 15:04:57 -0400
committermadelinegr <monika_hedman@brown.edu>2019-06-14 15:04:57 -0400
commit9b2ea107b5073df0b86b701d743a5c25aa0b1dd6 (patch)
tree81c944470b0e1381a6beac60f2a278688939916a /src/client/views/search/SearchBox.tsx
parentc301b53e9ca0a02b1a3ed15b9c0501613c2b8045 (diff)
something is incorrect!
Diffstat (limited to 'src/client/views/search/SearchBox.tsx')
-rw-r--r--src/client/views/search/SearchBox.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx
index 4befb99ec..5445f9cb0 100644
--- a/src/client/views/search/SearchBox.tsx
+++ b/src/client/views/search/SearchBox.tsx
@@ -81,6 +81,8 @@ export class SearchBox extends React.Component {
let query = this._searchString;
let results: Doc[];
+ console.log(query)
+
//if this._wordstatus is false, all words are required and a + is added before each
if (!this._wordStatus) {
let oldWords = query.split(" ");
@@ -102,6 +104,8 @@ export class SearchBox extends React.Component {
results = await this.getResults(query);
}
+ console.log(results)
+
runInAction(() => {
this._resultsOpen = true;
this._results = results;
@@ -126,6 +130,7 @@ export class SearchBox extends React.Component {
docs.push(field);
}
}
+ console.log(docs)
return this.filterDocs(docs);
}