diff --git a/src/common/rclconfig.cpp b/src/common/rclconfig.cpp
index f8ffd521..b968f2a7 100644
--- a/src/common/rclconfig.cpp
+++ b/src/common/rclconfig.cpp
@@ -95,6 +95,7 @@ void RclConfig::zeroMe() {
mimeconf = 0;
mimeview = 0;
m_fields = 0;
+ m_ptrans = 0;
m_stopsuffixes = 0;
m_maxsufflen = 0;
m_stpsuffstate.init(this, 0, "recoll_noindex");
@@ -217,6 +218,8 @@ RclConfig::RclConfig(const string *argcnf)
if (!readFieldsConfig(cnferrloc))
return;
+ m_ptrans = new ConfSimple(path_cat(m_confdir, "ptrans").c_str(), 1);
+
m_ok = true;
setKeyDir(cstr_null);
@@ -744,7 +747,7 @@ bool RclConfig::getFieldTraits(const string& _fld, const FieldTraits **ftpp)
_fld.c_str(), pit->second.pfx.c_str()));
return true;
} else {
- LOGDEB1(("RclConfig::readFieldsConfig: no prefix for field [%s]\n",
+ LOGDEB1(("RclConfig::getFieldTraits: no prefix for field [%s]\n",
fld.c_str()));
*ftpp = 0;
return false;
@@ -936,6 +939,41 @@ string RclConfig::getDbDir() const
return path_canon(dbdir);
}
+void RclConfig::urlrewrite(const string& dbdir, string& url) const
+{
+ LOGDEB2(("RclConfig::urlrewrite: dbdir [%s] url [%s]\n",
+ dbdir.c_str(), url.c_str()));
+
+ // Do path translations exist for this index ?
+ if (m_ptrans == 0 || !m_ptrans->hasSubKey(dbdir)) {
+ LOGDEB2(("RclConfig::urlrewrite: no paths translations (m_ptrans %p)\n",
+ m_ptrans));
+ return;
+ }
+
+ string path = fileurltolocalpath(url);
+ if (path.empty()) {
+ LOGDEB2(("RclConfig::urlrewrite: not file url\n"));
+ return;
+ }
+
+ // For each translation check if the prefix matches the input path,
+ // replace and return the result if it does.
+ vectorPrerequisites for building from source:
-
+
Prerequisites for building from source:
+
Qt development files: Qt 4.4 or newer. The Recoll GUI +
Qt development files: Qt 4.4 or newer. The Recoll GUI will not build with Qt releases older than 4.4.
Qt webkit development: Qt WebKit is quite often - distributed apart from the main Qt lib. It is possible to +
Qt webkit development: Qt WebKit is quite often + distributed apart from the main Qt lib. It is possible to configure Recoll not to use Qt WebKit (see configure --help).
The Recoll source repository is @@ -211,7 +211,7 @@
There are Personal Package Archives on launchpad.net for +
There are Personal Package Archives on launchpad.net for Recoll, kio-recoll and recoll-lens. These were built from the latest versions, for a set of Ubuntu series. starting at @@ -221,38 +221,60 @@ sudo apt-get update sudo apt-get install recoll -
Source code for the lens (also included in the main
- recoll tar file):
- For 1.18 installations:
- recoll-lens-1.18.1.2997.tar.gz
- For 1.17:
- recoll-lens-1.17.2.2697.tar.gz
The packages in the standard repository and on the PPA - are a bit different in the sense that the Python extension - is included in the PPA package, but it's a separate - package in the standard repository. This can give rise to - errors about overwriting the Python module when switching - between versions. Typically, the error message would be - like the following:
-+Source code for the lens (also included in the main + recoll tar file):
+ +
+ For 1.18 installations: + recoll-lens-1.18.1.2997.tar.gz
+ For 1.17: + recoll-lens-1.17.2.2697.tar.gzThe packages in the standard repository and on the PPA + are a bit different in the sense that the Python extension + is included in the PPA package, but it's a separate + package in the standard repository. This can give rise to + errors about overwriting the Python module when switching + between versions. Typically, the error message would be + like the following:
+ +ErrorMessage: trying to overwrite '/usr/lib/python2.7/dist-packages/recoll.so', which is also in package recoll 1.18.1-1~ppa1~quantal1-If this happens, you just need to delete - the previous package(s) before installing the other one(s) - instead of performing an upgrade.
+If this happens, you just need to delete + the previous package(s) before installing the other one(s) + instead of performing an upgrade.
+ +++ +Notes for Ubuntu Lucid
-Linux Mint
-The Ubuntu PPA works perfectly for Mint 13 (and probably - other releases too). Just follow the instructions for Ubuntu.
++ +
+- Under lucid you will need to add the + + Xapian backports PPA to provide the libxapian22 + package
+ +- The rclepub filter apparently needs Python + 2.7. You will need to install it and modify the first + line of the filter script to execute python2.7 + instead of python.
+ +Linux Mint
+ +The Ubuntu PPA works perfectly for Mint 13 (and probably + other releases too). Just follow the instructions for Ubuntu.
RPMS
-You'll need to install the Xapian, Qt, Qt-Webkit and zlib - development packages if you want use the source rpms.
+You'll need to install the Xapian, Qt, Qt-Webkit and zlib + development packages if you want use the source rpms.
Fedora
-Recoll is present in the standard Fedora package - repositories starting from F-12. The new versions are tracked quite + +
Recoll is present in the standard Fedora package repositories + starting from F-12. The new versions are tracked quite closely, so I don't build the rpms any more (email me if you need one).
@@ -260,9 +282,8 @@Recoll is in the KDE:Extra repository - + You just need to add the repository to your software sources (Yast2->software->Software repositories).
+ interfaces. Several solutions exist:
diff --git a/website/features.html b/website/features.html index 73c32079..51037fdc 100644 --- a/website/features.html +++ b/website/features.html @@ -356,8 +356,7 @@ application/x-tar = execm rcltar features that help to specify an efficient search and to manage the results. However it maybe sometimes preferable to use a simpler tool with a better integration with your desktop - interfaces. Several solutions exist, at the moment mostly for - the KDE desktop:
- The Recoll KIO module allows starting queries and viewing results from the @@ -365,6 +364,10 @@ application/x-tar = execm rcltar
- The recollrunner krunner module allows integrating Recoll search results into a krunner query.
+- The Ubuntu Unity Recoll Lens lets you access Recoll search + from the Unity Dash. More + info + here.