Hli Archives: Tim 2008

SharePoint ceev kev koom ua ke: Qauv Code kom tso saib txhua YOO Views muaj

Ntawm no yog tej chaws uas pom tias tas nrho muaj views ntawm ib CAUJ neeg rau zaub mov ntawm raug teev tus hais QRServer (txoj kev uas peb qhia neeg rau zaub mov). Kuv muab qhov no muab nej ib tug saj ntawm seb nws zoo li siv siv sai API.

siv Tsim;
siv System.Collections.Generic;
siv System.Linq;
siv System.Text;
siv Com.FastSearch.Esp.Search;
siv Com.FastSearch.Esp.Search.Http;
siv Com.FastSearch.Esp.Search.Navigation;
siv Com.FastSearch.Esp.Search.Query;
siv Com.FastSearch.Esp.Search.Result;
siv Com.FastSearch.Esp.Search.View;
siv System.Collections.Specialized;
siv System.Collections;


namespace Conchango
{
    hoob EnumerateFASTViews
    {
        zoo li qub khoob lug Main(hlua[] args)
        {

            ISearchFactory searchFactory;

            NameValueCollection nameValueCollection = tshiab NameValueCollection();

            nameValueCollection.Add("fastsearchengine", "Com.FastSearch.Esp.Search.Http.HttpSearchFactory");
            nameValueCollection.Add("Com.FastSearch.Esp.Search.Http.QRServers", "fastdemoback:15100");
            nameValueCollection.Add("Com.FastSearch.Esp.Search.Http.RequestMethod", "TAU");

            searchFactory = SearchFactory.NewInstance(nameValueCollection);

            Console.WriteLine("Tag nrho Views: [" + searchFactory.GetSearchViewList().Suav + "].");

            rau cov menyuam Kuv = 0;

            foreach (nruas o nyob rau hauv searchFactory.GetSearchViewList())
            {
                Console.WriteLine("Pom [" + i    + "]: [" + o.ToString() + "].");

            }

            Console.ReadLine();

        }
    }
}

Nco ntsoov tias kuv xav txog kuv tus kheej ib NW nyuam qhuav competent C# programmer thiab kuv muaj nyias daim tawv nqaij, thiaj tsis xa qhov twg raspberries kuv txoj kev, re tshwj xeeb: "foreach cov (kwv o nyob rau hauv …)" construct πŸ™‚

</kawg>

Ntawv cim npe Technorati: ,

Subscribe rau kuv blog.

Ceev ceev thiab SharePoint Integration thawj zoo

Kuv muaj hmoo kom tau caij nyoog mus ua hauj lwm rau ib vas NTHIV mus <–> Ib qhov kev koom ua ke SharePoint thiab xav tias kuv yuav tseem muab Kuv tsuas siv kev nrog zej zog.

Microsoft yog nyob rau hauv cov txheej txheem ntawm kev yuav khoom CAUJ. Kuv tsis paub dab tsi txog lub sij hawm tsis xam hais tias yuav tsum tau tag rau cov "2nd lub quarter" uas kuv xav tias yuav txhais tau tias yog 06/30/08.

Tus tsim kuv ib qhov, Thaum heev npaum li, hu tau tsim thiab lis ob peb qhov chaw web site uas muaj roughly tus zoo tib yam, xav thiab functionality ua tus txheem NTXHUAB nrhiav lub thawv thiab hoob qhab web Tshooj, tab sis rub rov qab los ntawm vas NTHIV. Kuv twb muab ib co me nyuam ruam nyob ntawd lawm.

CEEV yog ib saab nrhiav cav. Nws tsis raws li Microsoft lub tshuab, nkag siab tias nws yog kuv cuab kev ntawd tej tus YOO engineers kom meej meej hais MS tech (los lawv twb tau siv cov kev lag).

CAUJ:

CEEV yog ib yam khoom loj dab neeg rau zaub mov (thiab kuv tsis txhais uas nyob rau hauv txoj kev txiav txim tsis zoo zoo; NTXHUAB yog ib tug dab loj khoom rau kuv thiab). Nws pom raws Java thiab kuv pom ib co apache khoom thiab tej zaum ib co PHP. Kuv tsis tau tag yog muaj lwm yam khoom xyaw rau hauv nov muaj tech. Nws mas nws yeej sau rau ntawm qhov rais neeg rau zaub mov thiab paj fine virtual puag ncig uas kuv twb tau siv.

Zoo siv ntawm qhov Web site façade qhov ntsiab lus crawls SharePoint indexing ceev txoj kev tshwj xeeb.

Tus neeg siv SharePoint kawg yuav zoo nkauj npaum nyob nrog lub vas NTHIV neeg interface. Nws tau mus nrhiav yooj yim los ua ntej, qhia tau, yog cov loj nyob relevancy (tab sis yog kuv tsis pom tias tuam haujlwm li cas nws txais kev relevancy). Txawm li cas los, nws mus ntxiv. Nws stemming rau nkawd zoo. Kuv yeej tsis tau articulate nws zoo tab sis kuv yuav cia li hais tias "nws tseem zoo dua." Koj yuav coj kuv lo lus rau nws, or not πŸ™‚ I may elaborate on this point in the future, raws li kuv xav paub ntau ntxiv.

NTXHUAB:

Ceev ceev muab ib tug. Hauv NET DLL uas muab ib tug interface rau tus ceev cav. Qhov no yuav ua rau nws tej zaum peb yuav ua tau ib qhov Web site los sau daim ntawv thov los xijpeem peb xav kom cov lus nug ceev thiab tuaj soj ntsuam.

Muaj rau nkawd yuav tsum muaj lub Web site rau interface zoo li.

Kuv kuj muaj ib qho vas NTHIV-pab Web site ntawd integrate NTXHUAB thiab vas NTHIV. Kuv tsis paub tias qhov no yog ib POC, tej yam uas yog whipped ua ib demo dab tsi. Nws yog twv yuav raug hu tau ib lub cuab tam zoo kawm, tsis li kom nws yog npaj ntau lawm.

Uas yog nws tamsim no. Raws li kuv hnyav zuj zus ntawm peb tes num, Kuv mam li tswg tshaj.

</kawg>

Ntawv cim npe Technorati: , ,

Subscribe rau kuv blog.