2014-04-24 4 views
1

주어진 검색어에 대해 로컬 시스템을 검색하기 위해 아래 쿼리를 사용했습니다. 아래 쿼리는 파일의 내용이 아니라 파일 제목의 주어진 검색어 만 검색합니다. .doc 및 .pdf 문서가 아닌 .txt 문서의 파일 내용 만 검색합니다. 매우 이상하게 보입니다. 친절하게 도와주세요.SystemIndex Catlog 쿼리가 문서의 내용을 검색하지 않습니다.

SELECT "System.ItemName", "System.ItemFolderPathDisplay", "System.ItemTypeText", "System.ItemDate", "System.Kind", "System.ItemUrl" FROM "SystemIndex" WHERE CONTAINS(System.Search.Contents,'"SearchTerm"') AND (System.FileName LIKE '%.doc' OR System.FileName LIKE '%.txt' OR System.FileName LIKE '%.xls' OR System.FileName LIKE '%.docx' OR System.FileName LIKE '%.xlsx' OR System.FileName LIKE '%.ppt' OR System.FileName LIKE '%.pptx' OR System.FileName LIKE '%.pdf') AND Contains(System.Kind, 'document') ORDER BY System.FileName ASC 

미리 감사드립니다.

답변

-1

이 시도 :

CONTAINS('\"" + Searc + "*\"') 
관련 문제