Hi Waldek,
I am facing some different issue with FullText Search.
For custom reporting, I am using FullText Search query which returns all documents/files across Site collection Or Web Application based on defined scope.
FullText query does return results but I found some wired behavior with search results. When I search through Site Search (through SharePoint UI), I do get those missing documents (from FullText query result) as part of search results which confirms those documents are crawled and indexed:
1. Search result omits few documents (.DOCX) from same document library
— e.g. If I have uploaded 10 word documents (.DOCX) then search will return me only 8 out of 10 and 2 will be not part of results.
— No scope or filter provided of Metadata/keywords as query wrote to return all available documents from all lists.
2. From site pages search result returns only 5 pages (.ASPX and .html) out of total 10 pages in same library.
I am attaching sample FullText query for specific SC
SELECT Size, url, FileName, contentclass, IsDocument FROM Scope() WHERE "scope" = 'All Sites' AND
contains(url,'https://domainname/sites/secondsitecollection')
And
(ContentClass='STS_ListItem_PictureLibrary' OR ContentClass='STS_ListItem_DocumentLibrary' OR ContentClass='STS_ListItem_XMLForm' OR ContentClass='STS_ListItem_WebPageLibrary' OR ContentClass='STS_ListItem_851' OR ContentClass='STS_ListItem_850' OR ContentClass='STS_ListItem_2100' OR ContentClass='STS_ListItem_433') AND Size != 0
Note:
(Size != 0 clause is used to filter out folder and all documents are having some size and greater than > 0 kb)
Above query is used inside Timer Job and running under farm admin account.
Any help will be appreciated on this topics.
Thanks,
Sudarshan S Vatturkar