Kako bi se komunicirati s FAST Search putem API, moramo znati port na kojem je pokrenut QRServer.
Pratio sam ove korake da biste ga pronašli:
- Prijavite se u FAST admin stranice (http://server:port/admin).
- Idite na Pregled sustava.
- Locate "Search Dispatcher" i kliknite na ikonu spyglass:
- Ja sam uspješno koristio vrijednost, 15100 for "Info Name" = "http":
Bilješke:
1. Luka 15100 appears to be the default out-of-the-box port number for the QRServer.
2. Koristite ovaj kod sličan sljedećeg instancu vezu na post:
ISearchFactory searchFactory; NameValueCollection nameValueCollection = novi NameValueCollection(); nameValueCollection.Add("fastsearchengine", "Com.FastSearch.Esp.Search.Http.HttpSearchFactory"); nameValueCollection.Add("Com.FastSearch.Esp.Search.Http.QRServers", "fastdemoback:15102"); nameValueCollection.Add("Com.FastSearch.Esp.Search.Http.RequestMethod", "GET"); searchFactory = SearchFactory.NewInstance(nameValueCollection);
3. Ako odaberete mahnito netočan luku, ćete dobiti korisne poruku o pogrešci:
4. Međutim, Ako odaberete broj porta naveden na pregled (15102) you don’t get that helpful error message. Umjesto toga, kasnije, kada pokušate pristupiti podatke putem pretrage ili upućivanje na FAST pogled, you get an error. Debugging shows that the searchFactory’s view count is zero. You’ll be given the message "Failed to fetch Search View List".
</kraj>
Technorati Tags: BRZO
I found this extremely useful, Pavle. Thanks for sharing this. I have not been sent on any fast training course and I’ve been trying to reverse engineer the ESP web parts project in codeplex to build a proof-of-concept prototype.