Skip to content

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

polish: optimize search

Ilian Sapundshievb1a8e57e67c9
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1c4580e78..ca6646a69 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,49 @@
# Changelog
+## Version 3.10.4 / 2021.06.15
+
+### πŸŽ‰ New features
+
+- added new viewer for opening spreadsheet files like CSV, ODT or XLSX
+- make OpenStreetMap tile server configurable in the settings
+- allow changing the order of locations with drag and drop
+- geo tagging and custom date tagging many selected files does not work
+- use the thumb of a folder as thumb for the parent folder
+- extend the tag menu with add to tag group entry, enable dnd of tag from the default perspective to tag library
+- added strict(case sensitive) and semi strict search
+- adding support for JIF and JFIF files #1442
+- added maximum age of the search index per location locations
+- **[PRO]** added support for saved searches
+- **[PRO]** added support for sharable links with validation duration in object storage locations
+- **[PRO]** add input fields for entering lat and long directly in the geo tagging dialog
+- **[PRO]** export current folder content or search results entries as CSV file
+- **[PRO]** added support for multi factor auth (MFA) for TagSpaces Enterprise
+- **[PRO]** added new smart icon as pin for files and folder, redesigning pin popup
+- **[PRO]** implement coloring map icons according to the color of the first tag
+- **[PRO]** extend the tag menu with add to tag group
+
+### 🌟 Enhancements
+
+- create tab for advanced settings
+- improve dark mode for the entry properties
+- update Norwegian, Hungarian and Japanese translation
+- improvements in the search and thumbnail generation snackbar
+- parse text query for containing tags and optimize search reset (#1422)
+- **[PRO]** improving thumbnail generation for text files
+
+### πŸ› Bug fixes
+
+- reducing the usage of openFileNatively, fixing #1420
+- removing the location limitation of the search string in the fussy search
+- making index preparation more robust
+- clear folder background color
+- default sorting per name is now alphabetic
+- search tags by camel case #1426
+- **[PRO]** fix deleting folder in object storage containing others folders
+- **[PRO]** hide mobile side-menu during the amplify login process
+- **[PRO]** improve folder creation in object stores
+- **[PRO]** fix show thumbnails in object stores
+
## Version 3.9.5 / 2021.03.27
### πŸŽ‰ New features
diff --git a/app/services/search.ts b/app/services/search.ts
index 7cdf620a1..2673d8d68 100644
--- a/app/services/search.ts
+++ b/app/services/search.ts
@@ -209,10 +209,13 @@ function constructjmespathQuery(searchQuery: TS.SearchQuery): string {
return jmespathQuery;
}
-function prepareIndex(index: Array<Object>) {
+function prepareIndex(index: Array<Object>, showUnixHiddenEntries: boolean) {
console.time('PreparingIndex');
let resultIndex = [];
- resultIndex = index.map((entry: any) => {
+ resultIndex = index.flatMap((entry: any) => {
+ if (!showUnixHiddenEntries && entry.name.startsWith('.')) {
+ return [];
+ }
const tags = [...entry.tags];
let lat = null;
let lon = null;
@@ -263,7 +266,7 @@ function prepareIndex(index: Array<Object>) {
if (toTime) {
enhancedEntry.toTime = toTime;
}
- return enhancedEntry;
+ return [enhancedEntry];
});
console.timeEnd('PreparingIndex');
return resultIndex;
@@ -292,9 +295,8 @@ export default class Search {
console.time('searchtime');
const jmespathQuery = constructjmespathQuery(searchQuery);
let results = prepareIndex(
- !searchQuery.showUnixHiddenEntries
- ? locationContent.filter(entry => !entry.name.startsWith('.'))
- : locationContent
+ locationContent,
+ searchQuery.showUnixHiddenEntries
);
let searched = false;