How to make recoll program to show files with specific extension (for example, *.cpp, *.txt, etc)?
- 
        Hmmm....I don't understand your question.mdpc– mdpc2013-01-02 20:20:25 +00:00Commented Jan 2, 2013 at 20:20
- 
        1@mdpc I'm not sure which part; he wants to do a text search with recoll, but only return files with the extensions he specifiesMichael Mrozek– Michael Mrozek2013-01-02 20:36:47 +00:00Commented Jan 2, 2013 at 20:36
- 
        maybe I don't remember seeing a 'recoll' command in UNIX/Linux (thought it might be a mispelling)....mdpc– mdpc2013-01-02 20:44:55 +00:00Commented Jan 2, 2013 at 20:44
- 
        1@MichaelMrozek You are right. I meant exactly what you have said.ASten– ASten2013-01-02 20:57:55 +00:00Commented Jan 2, 2013 at 20:57
- 
        Found solution here: linkASten– ASten2013-01-02 21:44:00 +00:00Commented Jan 2, 2013 at 21:44
                    
                        Add a comment
                    
                 | 
            
                
            
        
         
    1 Answer
The solution is to use the Recoll query language. In the graphical version of Recoll, select "Query language" from the drop-down, and then use the ext: field specification. For example:
ext:cpp
will show *.cpp files, while
ext:txt
will show *.txt files.
You can also do this from the command-line like this:
recoll -t -l 'ext:cpp' | less
extspecifies the file name extension (Ex:ext:html)
https://www.lesbonscomptes.com/recoll/usermanual/webhelp/docs/RCL.SEARCH.LANG.html
- 
        lesbonscomptes.com/recoll/usermanual/usermanual.html (updated URL). Also I think just "recollq ext:cpp" works, no need for "include"?user2267– user22672015-04-18 17:34:07 +00:00Commented Apr 18, 2015 at 17:34
- 
        @barrycarter Sorry, can't check it. I haven't used recoll for an year at least.ASten– ASten2015-04-24 07:40:25 +00:00Commented Apr 24, 2015 at 7:40