Tag Archives: HarlanEllison

Wieħed Kawza għal "Il-kreatur ta 'din tort ma speċifikax Raġuni.”

Stajt kont qed tagħmel ħafna xogħol ma 'search SharePoint aħħar u speċifikament l-klassi KeywordQuery, proprjetajiet u l-metodi.

Jekk trid li l-riżultat stabbilit li jirritornaw riżultati fuq u lil hinn mill-suspettati tas-soltu (tara hawn), inti iżżidhiex mal-ġbir SelectedProperties, kif fil-:

myKeywordQuery.SelectProperties.Add("xyzzy");

Many thanks and a tip of the hat to Corey Roth u this enormously helpful blog post (http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2008/02/19/how-to-use-the-moss-enterprise-search-keywordquery-class.aspx)

Fil-każ tiegħi, “xyzzy” isn’t actually a managed property.  When I added it to SelectedProperties anyway, SharePoint threw one of my favorite ever runtime exceptions:

“The creator of this fault did not specify a Reason.”

I especially like the capital “R” in Reason.  This sounds to me like the .NET equivalent of “I have no mouth, and I must scream."

</aħħar>

Abbona għall-blog tiegħi.

Follow lili Twitter fi http://www.twitter.com/pagalvin