fcastilloec writes

The is that folders aren’t displayed in the results in the unity scope. It seems that recoll scopes only displays files and nothing else. The GUI can find folders for the same search query that the scopes doesn’t show. It’ll be extremely helpful if folders are also shown. The lens hasn’t been updated in a long time, but it works for the most part without a problem and does what it should do, except for this small problem.

medoc writes

Hi,

I’ll take a look at this, but I wont' be able to do it before the end of march.

Cheers, jf

medoc writes

I tried on Ubuntu trusty, and I can’t reproduce your issue. Folders do appear in the results when their name matches the search. Did you verify that the results you are seeking do appear in the Qt GUI ? Maybe they are not indexed for some reason.

fcastilloec writes

I think that the problem is not necessarily with folders. I was doing some testing and this is what I found. Folders do appear in the Unity Scope, but only if the name matches perfectly (case sensitive). As an example, I’m going to post two screenshots of a folder named "Phones", everything will be done case sensitive. Under the unity scope, if I search for "phones" I get nothing, while searching for "Phones" shows me the folder I’m looking for. You’ll see that when I search in recoll for "phones" it’s the first result, just to prove that the folder is being indexed by recoll. Also, you can see that the results in the unity scope for both "phones" and "Phones" vary a lot.

medoc writes

The reason for the difference is that you are performing a specific filename search in the GUI. You can’t do this in the Scope, it is always in Query Language mode.

In Query Language mode, the difference that you are seeing between phones and Phones is not because of case sensitivity (there is none by default) but because capitalizing a word disables stemming.

You could get something close (but not identical) to the GUI search by searching for filename:Phones in the Scope.

If you really want to compare Scope and GUI results, you need to put the GUI in Query Language mode.

medoc writes

OOps sorry I just found a bug in the Scope with prefixed searches. I have a correction, I’ll push a package update right away.

fcastilloec writes

Well, I’m not sure if this is a limitation on the unity scopes or not, but the fact that I can only see the first 30 results is not so good. Here’s a screenshot of recoll under query language instead of filename.

You can see that the results are there, just that the folder I’m looking for is result 34 out of 264. If I search in recoll for "Phones" the results gets moved to 17 out of 84. Because only the first 30 results are shown, the search for "phones" shows no results under the unity scopes. Is the 30 limit put by you or the unity scope? Is there a way to manually change this? or if there are more results, would it be possible to inform the user that results are missing and direct them to the recoll app to show all the results.

Using prefixes sounds great, but I do have some questions/suggestions about it. Is there a guide where I can see all the possible prefixes that can be used? I couldn’t find any under the User Manual. Can these prefixes be added to the Filter Results section of the Files & Folders Unity Scope? It will be great if by just a click I can select only filenames or the full query, or just directories, etc., depending on the type of prefixes. This way the user doesn’t have to explicitly know all the prefixes Recoll uses, and they get added in the background.

medoc writes

The scope limits the result count to 30. The Unity interface does not lend itself so well to long result lists.

You can change this by editing /usr/share/unity-scopes/recollscope/unity_recoll_daemon.py

Change MAX_RESULTS=30 to whatever you like. Or use the filename: field spec if you know that you are searching for a file name (I just updated the packages on the PPA).

medoc writes

About the prefixes or field names: they are described in the "Query Language" section of the user manual: http://www.lesbonscomptes.com/recoll/usermanual/RCL.SEARCH.LANG.html

Using field names with "Filter results" would be a nice idea, unfortunately, I don’t know how to get Unity to do this, I am afraid that the categories are predefined.

I am not totally sure of what you can do or not with Unity though, I could use help from a Unity expert, a collaboration between someone who knows Unity and someone who knows Recoll would at least ensure that we get the best possible integration.

fcastilloec writes

Thanks for the info. I also just received the update. I tried it from the Home scope twice and it worked great until Unity Scopes crashed. Now recoll is not finding anything. I assume that I would have to restart my session for it to work again, or at least see what’s going on. I will try more of field names and do more tasting later, since at the moment I can’t restart my session or computer. Do you know where the logs go for crashes of the unity scope? that way I can see what happened and even forward it to you.

medoc writes

Sorry about the scopes crash.

I sort of doubt that this can be a direct recoll crash: scopes are executed as separate processes.

I don’t know where the main output goes: when I want to debug the recoll scope, I just execute unity_recoll_daemon.py in a window (after killing the current instance if any). It manages to connect to the scopes environment, receive query and send results, and I look at the messages and errors in the terminal.

fcastilloec writes

I found another bug. This has to do with the way the Show in Folder is being handle.

I know how to solve this bug, and also I’ll be willing to help with some of the other Scopes related things. I’m not an expert but I think I’ll be able to do it. How can I get the code so I can work on it? Should I clone this repository or the unity-scope-recoll? Also, I hope that the latest changes you made are here. I’m not sure if you’re working on this repository or if you’re working on launchpad or somewhere else.

medoc writes

I’ve extracted the Scope from the Recoll source to the unity-scope-recoll repository, a few month ago:

with just the idea that it would make it easier for people to help. So this is the repository which you should use, it is up to date, it has the latest fix I did this afternoon (just pushed it).

It’s really great that you can take a look at this !

medoc writes

Also, of course, if you have trouble with recoll or its python interface, don’t hesitate to ask. My email is jf at dockes.org (or jfd at recoll.org).

medoc writes

Closing this for now as the new problem is undescribed. About the result count and by the way, there is a recoll config file variable to adjust it: unityscopemaxresults

I had just forgotten about its existence…