1
SharePoint 사이트 내에서 문서를 검색하려고하지만 결과가 사용자에게 표시되기 전에 대상 지정을 적용해야합니다.FullTextSqlQuery 대상 대상
나는 그러나 (a)는 원래 쿼리 내에서 타깃 설정을 검색 중 하나에 어려움을 겪고 있어요...
using (SPSite site = new SPSite(SPContext.Current.Site.ID)) {
using (FullTextSqlQuery fullText = new FullTextSqlQuery(site)) {
fullText.QueryText = @"select Title, Path, Description, TargetAudience from scope() where ((""scope"" = 'All Sites'))"
+ @" and IsDocument = 1 and freetext(*, '{0}')";
fullText.QueryText = string.Format(fullText.QueryText, this.documentFilter.AllOfTheseWords);
fullText.ResultTypes = ResultType.RelevantResults;
ResultTableCollection resultTableCollection = fullText.Execute();
allofTheseWords = new DataTable();
if (resultTableCollection.Exists(ResultType.RelevantResults)) {
allofTheseWords.Load(resultTableCollection[ResultType.RelevantResults], LoadOption.OverwriteChanges);
}
}
}
또는 (b) 원래 쿼리 내에서 목록 항목 ID (GUID)를 검색하므로 그때 원래 목록 항목에 각각의 결과를 묶어 (따라서 목록의 항목을 사용하여 잠재 고객 타겟팅을 적용 할 수있다.
어떤 제안?