353 Commits

Author SHA1 Message Date
Jean-Francois Dockes
037aa07bfd Suppress compiler warning about a possibly truncated snprintf (no real problem) by increasing a buffer size 2019-03-04 10:58:49 +01:00
Jean-Francois Dockes
399c633efd Avoid purging documents from absent mountable volumes 2019-02-03 18:51:52 +01:00
Jean-Francois Dockes
2909eec062 get rid of redundant rclversion.h 2019-01-30 12:40:55 +01:00
Jean-Francois Dockes
dcd517bcf2 Fix -z always resetting index to non-text-storing independantly of configuration 2019-01-29 20:11:43 +01:00
Jean-Francois Dockes
036e1da6b4 rcldb: change flush log message level to INF 2018-11-14 09:42:22 +01:00
Jean-Francois Dockes
3ff88a9541 suppress query time updated map spurious error message 2018-10-07 09:07:51 +02:00
Jean-Francois Dockes
6441eea8aa Store the origin dbdir inside the GUI doc history, so we can later fetch documents from external indexes 2018-05-31 15:01:17 +02:00
Jean-Francois Dockes
3168ba1082 log message 2018-04-10 10:31:24 +02:00
Jean-Francois Dockes
21adaca229 Add parameter to truncate all document text to specified length 2018-04-08 10:54:09 +02:00
Jean-Francois Dockes
7b83438e9c fix the ifdef condition for not trying to create a stretch db 2018-02-05 15:30:34 +01:00
Jean-Francois Dockes
cecd1b4ba7 Merge 1.23 Windows changes intended to improve the index rebuild failures caused by open files 2018-01-25 15:34:27 +01:00
Jean-Francois Dockes
3d4fd3c62e When storing doc text, always use a metadata entry. Get rid of the code to
store it in the data record. Make storing the default.  Add "fetchtext"
parameter to getDoc() to fetch and store the text in doc.text. Make this
accessible from Python. Misc comments and indents.
2018-01-25 13:20:02 +01:00
Jean-Francois Dockes
595e419d93 Implemented range queries, based on storing fields in xapian values 2018-01-24 09:43:20 +01:00
Jean-Francois Dockes
fd32872218 Improve 'rebuild index' under Windows: this often failed because of some
open files in the Xapian db (could not be deleted under windows).
Now only fails if a preview has been opened, and a GUI restart fixes the
situation.
2018-01-20 11:59:00 +01:00
Jean-Francois Dockes
5b35ecfe36 Windows warning suppression (no real changes) 2018-01-19 17:26:43 +01:00
Jean-Francois Dockes
60cb39c935 indexStoreDocText config variable, fix terms and conditions when we store the doc text or not 2018-01-19 12:02:12 +01:00
Jean-Francois Dockes
2c76a70c0e Abstracts: storing raw doc text in user metadata records 2018-01-06 11:38:24 +01:00
Jean-Francois Dockes
3fd3505827 Make the test for detecting non-stripped index a bit more specific (look for ":T:" instead of just ":"). Some very old indexes appear to have some ":" characters in them 2018-01-04 10:04:12 +01:00
Jean-Francois Dockes
bb810f9ceb Changed new param name storerawtext->storedoctext. + comments 2018-01-02 19:23:12 +01:00
Jean-Francois Dockes
b4493ed9e1 Snippets generation: add method for generating from doc stored text. Still needs refining, esp. for phrase/near 2017-12-30 08:43:14 +01:00
Jean-Francois Dockes
e204bf06f3 Force creating new indexes in Chert format even when running with Xapian 1.4 in order to avoid the issues with snippet generation caused by the Glass index format 2017-12-08 15:14:17 +01:00
Jean-Francois Dockes
503edd5a92 Add function to list failed files to the term explorer 2017-09-03 10:46:11 +02:00
Jean-Francois Dockes
16250f6096 fix log messages whitespace and line breaks 2017-06-05 14:31:08 +02:00
Jean-Francois Dockes
9661a4431e wen 2017-04-18 14:39:12 +02:00
Jean-Francois Dockes
bde991c08a got rid of off_t 2017-02-28 20:36:01 +01:00
Jean-Francois Dockes
2cfb4f7e4c allow disabling storing an abstract made of the beginning of document by setting its length parameter to 0 2017-02-27 18:26:34 +01:00
Jean-Francois Dockes
525fff9120 Replace deprecated Xapian::Database::flush() with commit() (name change only) 2016-12-11 09:40:29 +01:00
Jean-Francois Dockes
e0a79455ae Make path searches case-insensitive on windows. 2016-08-06 12:20:45 +02:00
Jean-Francois Dockes
0b0385e459 got rid of the STD_SHARED_XX std/tr1 defines 2016-07-13 15:12:25 +02:00
Jean-Francois Dockes
c1fad4afc7 Replaced pthread with std:: thread and mutex 2016-07-12 18:08:21 +02:00
Jean-Francois Dockes
f6a999de84 logging now uses c++ streams 2016-07-12 09:41:04 +02:00
Jean-Francois Dockes
d0c44f303b increment basepos after adding postings for path elements so that cfn terms are not at the same positions 2016-06-21 12:16:10 +02:00
Jean-Francois Dockes
a4fd4ee5be moved code around to make smallut and pathut less recoll-specific and reusable. No actual changes 2016-03-21 12:55:31 +01:00
Jean-Francois Dockes
53f57e75c6 rcldb syngroups: allow setting synonyms source after construction 2015-11-21 12:48:09 +01:00
Jean-Francois Dockes
c420a5cbb3 Avoid using the return value of localtime_r, it's sometimes null on windows. 2015-11-15 16:07:01 +01:00
Jean-Francois Dockes
f70c92c629 rcldb::getSubDocs() (called from GUI show subdocs) was returning too many results because the parent/child ipath test was flawed 2015-11-03 08:40:13 +01:00
Jean-Francois Dockes
d013ecb1bc Windows: fix path splitting for the XP field 2015-10-14 10:53:15 +02:00
Jean-Francois Dockes
63802a4005 housekeeping: separated out the chrono utility 2015-10-14 09:18:26 +02:00
Jean-Francois Dockes
3b18facc16 Fixed some "unused xxx" warnings + include autoconfig 2015-10-07 08:30:49 +02:00
Jean-Francois Dockes
d942242047 replace all %lld instances 2015-10-03 17:25:17 +02:00
Jean-Francois Dockes
1cbf02f713 Suppressed many integer size warnings by a mix of type adjustments and casts,
none of which should have a real effect.

--HG--
branch : WINDOWSPORT
2015-09-01 19:39:20 +02:00
Jean-Francois Dockes
853cdea7d7 fix bogus signedness warning
--HG--
branch : WINDOWSPORT
2015-08-30 17:45:19 +02:00
Jean-Francois Dockes
14c8e740d6 Windows: fixed a number of int size warnings mostly by casting them away
--HG--
branch : WINDOWSPORT
2015-08-30 17:30:31 +02:00
Jean-Francois Dockes
d4cd1dd91c 1st mods to get a build under windows. Does not build yet, far from it
--HG--
branch : WINDOWSPORT
2015-08-30 11:19:18 +02:00
Jean-Francois Dockes
d8e8ce6ee2 Implement single-term query-time synonyms 2015-08-22 15:11:07 +02:00
Jean-Francois Dockes
4d1f679eac Use std[::tr1]::shared_ptr instead of local RefCntr by default 2015-08-09 13:54:24 +02:00
Jean-Francois Dockes
c8d34dc8ba Prevent highligting of bogus terms in results (prevent path elts, negative queries or internal stuff) 2015-08-08 21:56:45 +02:00
Jean-Francois Dockes
e6c0ca403d recollindex: do not retry files which previously failed to be indexed, except if they were changed since, or option -k is set 2015-04-23 10:37:37 +02:00
Jean-Francois Dockes
9ba0b3e8bc Replaced RSA md5 code with public domain OpenBSD/debian dpkg version 2015-03-01 14:28:01 +01:00
Jean-Francois Dockes
81cc5326ba missing ifdef would make --disable-idxthreads build fail 2014-11-20 19:31:35 +01:00