We have sharepoint 2013 site collection, which have 70 sub-sites. now some document libraries contain OneNote documents. so i want to search all the site collection and its sub-sites, to be able to get all the OneNote documents. now i try to do a searching using this search criteria .one
but i got many documents which are not OneNote. so can i search the site collection using file types?
1 Answer
This query will return .one
files
IsDocument:TRUE FileType:one
This query will return .one
and .onetoc2
files
FileType:one*
"*" is wildcard (FileType:one* will return all .one and .onetoc2 files).
IsDocument:TRUE
returning documents .one
and not .onetoc2
so you have same results.
https://www.techmikael.com/2014/12/limit-search-results-to-documents.html
-
1OK thanks for the reply. now i run this search
FileType:one*
and still i am getting the same results asIsDocument:TRUE FileType:one*
&IsDocument:TRUE FileType:one
.. So my conclusion is that, maybe i do not have.onetoc2
files. or.onetoc2
is excluded from the search (although i have never define any thing inside the search service to exlcude.onetoc2
files!!) Commented Jan 21, 2019 at 16:18
IsDocument:TRUE FileType:one
and i got a list of one note files. now i do not have much knowledge about OneNote files, but willIsDocument:TRUE FileType:one
covers onenote document which have extension =onetoc2
??