Restricting query to PDF files only

Hi all,

I am new in Funnelback world. I thought search for PDF only (excluding all web pages and other documents) will be something that is common but I have searched the forum and I think I don’t get the keyword right because I couldn’t find any discussion or question related to it.

I need to do search form = JSON and would like to limit my search result only to PDF types. What should I use in my query to filter the result only to PDF files? Thanks.

Hi,

This can be done by passing an additional parameter in your query string (&meta_f_sand=pdf).

e.g. if your URL was http://search.example.com/s/search.json?collection=example&query=example you would use http://search.example.com/s/search.json?collection=example&query=example&meta_f_sand=pdf to restrict the results to only PDFs.

The option to restrict a search to pdfs only is available on the advanced search form

Excellent … exactly what I am looking for. Thanks a lot for your help @plevan.