607 Commits

Author SHA1 Message Date
Jean-Francois Dockes
4a56748fe5 hldata: matchGroup: return false if no match found 2019-07-21 19:13:24 +02:00
Jean-Francois Dockes
35ee3f7a13 Highlighting and snippets extraction: reworked to handle phrases properly. Use a compound position list instead of multiplying the OR groups inside a near clause 2019-07-21 19:09:51 +02:00
Jean-Francois Dockes
0b16935016 hldata: cleanup + support phrases 2019-07-21 19:09:51 +02:00
Jean-Francois Dockes
049ba1e7e4 Windows: build with UNICODE, get rid of all TCHAR/TEXT(), use explicit
xxA() interfaces and wchar_t in some places. Add a static cleanup retry
method to TempFile, called after clearing the MimeHandler cache (killing
the subprocesses which might hold an open file).
2019-07-21 16:23:16 +02:00
Jean-Francois Dockes
59f6c503cb shared 2019-06-27 11:11:17 +02:00
Jean-Francois Dockes
45043b816f add onlyNames config variable for filtering file names 2019-06-17 08:28:14 +02:00
Jean-Francois Dockes
d20172032b transcode: separate main program 2019-06-14 10:15:17 +02:00
Jean-Francois Dockes
d3452ac18c hldata: toString()->const 2019-05-21 10:58:09 +02:00
Jean-Francois Dockes
33e1847b26 suppress misc warnings on fedora and macosx 2019-04-28 15:39:15 +02:00
Jean-Francois Dockes
54f0eda990 make doc.meta an unordered_map 2019-04-20 15:04:19 +02:00
Jean-Francois Dockes
4d7d1a7965 windows powerfail signal: stop indexing only on resume and topdirs change 2019-03-19 14:38:57 +01:00
Jean-Francois Dockes
b3c1c260f0 comments 2019-03-12 14:51:23 +01:00
Jean-Francois Dockes
20910d3911 Add pylogfilename and pyloglevel functions to allow separating python logging. Unify recollinit calls 2019-03-10 14:52:46 +01:00
Jean-Francois Dockes
0cbc46732f Fixed the FSF address 2019-03-04 11:19:14 +01:00
Jean-Francois Dockes
c93581201a Allow defining a file name which causes directory skip if present 2019-02-20 17:46:49 +01:00
Jean-Francois Dockes
d538ba3190 shared 2019-02-20 17:45:25 +01:00
Jean-Francois Dockes
8853cb505a Windows: improve indexing process management. Fix Pidfile locking.
Use a stop file to request stop of indexing when the indexer was not
started from the current GUI instance.
2019-02-14 14:12:08 +01:00
Jean-Francois Dockes
c2691f68bf utf8 truncate utility function 2019-02-03 17:57:29 +01:00
Jean-Francois Dockes
17a8d72227 indenting 2019-02-01 09:02:10 +01:00
Jean-Francois Dockes
33febc9649 improve temp file creation error message 2019-01-31 16:59:15 +01:00
Jean-Francois Dockes
8368995f22 Windows: port dir size computation 2019-01-30 18:53:41 +01:00
Jean-Francois Dockes
d2c87318cb Use fstreewalk-based du-like code to compute index size instead of executing du 2019-01-30 13:43:36 +01:00
Jean-Francois Dockes
0aa6e3ca75 Merge back windows and shared code changes 2019-01-29 17:49:25 +01:00
Jean-Francois Dockes
7ea3936420 Windows: use wide char interfaces
Exchange file names and command line parameters with the system using
wchar_t interfaces: allows preserving values which can be reversibly
transcoded in the current multibyte charset (which can't be UTF-8). Store
all file paths internally in UTF-8
2019-01-25 15:28:24 +01:00
Jean-Francois Dockes
096ab4454b Windows: use wide char interfaces to read directories and access files 2019-01-23 15:05:11 +01:00
Jean-Francois Dockes
f6f4d8426a comments + really compute md5 on uncompressed data 2018-12-28 10:32:01 +01:00
Jean-Francois Dockes
586ff90dc0 internal xslt: openoffice zip format working 2018-12-27 16:20:12 +01:00
Jean-Francois Dockes
094a119538 Fix crash and bad small file handling in readfile.cpp 2018-12-26 15:51:43 +01:00
Jean-Francois Dockes
00c0c5168b internal xslt working for single-sheet (abw). Still leaking memory? 2018-12-25 10:57:26 +01:00
Jean-Francois Dockes
8b4174feb1 shared smallut 2018-12-16 16:19:39 +01:00
Jean-Francois Dockes
1de00ebae7 shared code 2018-12-13 15:29:22 +01:00
Jean-Francois Dockes
cb1b4ac993 netcon: less noise when kqueuing 2018-12-01 14:10:14 +01:00
Jean-Francois Dockes
0cdcaea437 mimeparse: use cp1252 instead of iso-8859 on values with residual 8bit chars.
Also: comments and missing std:: qualifiers
2018-11-22 17:42:00 +01:00
Jean-Francois Dockes
385a7b9547 indent + comments + explicit std:: 2018-11-22 14:29:24 +01:00
Jean-Francois Dockes
c82461cf39 modified license on some shared files (gpl->lgpl) 2018-11-06 16:27:54 +01:00
Jean-Francois Dockes
1d62b50c7e rearrange md5 code for sharing. update shared smallut 2018-11-06 09:46:05 +01:00
Jean-Francois Dockes
2fb61f2583 logsyserr(): no strerror_r on Windows 2018-10-24 17:10:21 +02:00
Jean-Francois Dockes
beebb1028b Merge branch 'master' of https://opensourceprojects.eu/git/p/recoll1/code 2018-10-12 12:06:21 +02:00
Jean-Francois Dockes
8a09948745 shared: netcon: suppress gcc warning 2018-10-07 09:08:26 +02:00
Jean-Francois Dockes
2267e5f2f5 Simplified code by replacing misc direct regex/regex.h invocation with SimpleRegex wrapper 2018-09-03 13:29:16 +02:00
Jean-Francois Dockes
7048d2a014 removed dead code 2018-07-07 09:15:57 +02:00
Jean-Francois Dockes
4524ae2acc merged shared 2018-06-21 10:52:56 +02:00
Jean-Francois Dockes
7c7eafa98a got rid of unused old refcntr.h 2018-05-31 17:01:45 +02:00
Jean-Francois Dockes
fbcbfbf7e5 shared code 2018-05-31 16:44:50 +02:00
Jean-Francois Dockes
96c6fd74b4 mingw needs explicit conversion of enum member to int in conditional 2018-05-17 15:42:12 +02:00
Jean-Francois Dockes
1c55eeda31 When choosing a suffix for a temp file, ensure that we only use the first entry in mimemap for a given MIME type. Avoids exotic suffixes confusing apps 2018-05-17 11:05:05 +02:00
Jean-Francois Dockes
d69d2abbde TempFile: clean-up interface by using internal ref-counted class member. Uncomp: add interface to clear cache 2018-05-17 10:24:01 +02:00
Jean-Francois Dockes
66ebb47437 merged shared smallut 2018-05-16 18:28:41 +02:00
Jean-Francois Dockes
33cebf5f4e fix fedora 28 crash caused by assertion (no actual issue). Use resize, not reserve to provision a c++ vector actually used as c storage 2018-05-13 18:27:47 +02:00
Jean-Francois Dockes
ea3bd23d7c Fixed namespace decls issues 2018-04-18 09:34:58 +02:00