You need to create a Web Part that displays all content created by a specific user. You write the
following code segment. (Line numbers are included for reference only.) 01 privace void
keywordQueryExecute (string searchAuthor ) 02 { 03 KeywordQuery kRequest = new
KeywordQuery ( ServerContexc.Current ) ; 04 05 kPequest.QueryText = strQuery ; 06
ResultTableCollection resultTbls = kRequest.Execute () ; 07 } Which code segment should you
add at line 04?
A.
string strQuery = “author:” + searchAuthor;
B.
string strQuery = “SELECT Title, Rank, Write, Url FROM SCOPE () WHERE author – ” +
searchAuthor ;
C.
string strQuery – “SELECT Title, Rank, Write, Url FROM SCOPE() WHERE docID – ” +
searchAuthor ;
D.
string strQuery * ” doc ID:” + searchAuthor ;