diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-16 14:41:18 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-16 14:41:18 -0400 |
| commit | 1b5bf295d951858a9d54e95e2ada4882f1a39f40 (patch) | |
| tree | 92a05aed403bb6690f2ee78d6a6b424c8d666de8 /src/client | |
| parent | 1efa3f098bf76b69f15bd0fbba5532afde322bf0 (diff) | |
Added start of deleted documents to search
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/views/search/SearchBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index dc76d1ff4..733e93a62 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -118,7 +118,8 @@ export class SearchBox extends React.Component { private get filterQuery() { const types = FilterBox.Instance.filterTypes; - return "NOT baseProto_b:true" + (types ? ` AND (${types.map(type => `({!join from=id to=proto_i}type_t:"${type}" AND NOT type_t:*) OR type_t:"${type}"`).join(" ")})` : ""); + const includeDeleted = false; + return "NOT baseProto_b:true" + (includeDeleted ? "" : " AND NOT deleted:true") + (types ? ` AND (${types.map(type => `({!join from=id to=proto_i}type_t:"${type}" AND NOT type_t:*) OR type_t:"${type}"`).join(" ")})` : ""); } |
