Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Merge remote-tracking branch 'remotes/origin/develop' into TSN212---Use-autosuggestion-for-selecting-tags-for-the-search

Stanimir Marinov73d1aade245f
diff --cc app/components/Search.js
index d0f98637b,2dfed0a1b..61a2584e6
--- a/app/components/Search.js
+++ b/app/components/Search.js
@@@ -42,8 -43,9 +42,9 @@@ import IconButton from '@material-ui/co
import Select from '@material-ui/core/Select';
import FormControl from '@material-ui/core/FormControl';
import FormHelperText from '@material-ui/core/FormHelperText';
-// import Switch from '@material-ui/core/Switch';
+import TagSelect from './TagsSelect';
import { actions as AppActions, getIndexedEntriesCount, isIndexing, getDirectoryPath } from '../reducers/app';
+ import { getMaxSearchResults } from '../reducers/settings';
import styles from './SidePanels.css';
import i18n from '../services/i18n';
import { FileTypeGroups, type SearchQuery } from '../services/search';
@@@ -120,7 -121,8 +122,8 @@@ class Search extends React.Component<Pr
textQuery: this.state.textQuery,
fileTypes: this.state.fileTypes,
tagConjunction: this.state.tagConjunction,
- tags // TODO put this.state.tagQuery Array<Tag> instead
- tags,
++ tags, // TODO put this.state.tagQuery Array<Tag> instead
+ maxSearchResults: this.props.maxSearchResults
};
console.log('Search object: ' + JSON.stringify(searchQuery));
this.props.searchLocationIndex(searchQuery);
diff --cc app/services/search.js
index e5ce84089,a9bf75dd8..0ca9414b9
--- a/app/services/search.js
+++ b/app/services/search.js
@@@ -46,8 -46,9 +46,9 @@@ export type SearchQuery =
textQuery?: string,
fileTypes?: Array<string>,
tagConjunction?: 'AND' | 'OR',
- tags?: Array<string>,
+ tags?: Array<string>, // TODO Array<Tag>
- lastChanged?: Date
+ lastChanged?: Date,
+ maxSearchResults?: number
};