koniu writes

It would be nice if python api exposed the full xapian query string. This would allow better highlighting of results.

medoc writes

I can only agree. If you want to have a go, I’m quite ready to provide info on the C++ side (there would be a very simple method to add to the RclQuery class, and then its Python interface).

koniu writes

My C++ is pure whack, I did have a look (or a grep rather) and gave up but might have another stab.

medoc writes

What data would you want to access precisely ? The Xapian query description string (as displayed for example in the "show query" link from the GUI) may not be that easy to parse and the terms may not be exact matches for what is found in the source text (because of accents mostly).

koniu writes

good point. indeed the "show query" string would require some stripping of brackets and the such. i don’t really follow the problem with accents is but i don’t think that it would be too much of a problem

medoc writes

Would you mind contacting me by email at jf@dockes.org ? If you intend to publish your work on a web UI for Recoll, I’d be quite ready to collaborate actively, as this function has been requested a number of times in the past.

koniu writes

email sent

medoc writes

Highlighting and the Xapian query string are now accessible from Python