Ili kuwasiliana na Tafuta FAST kupitia API yake, tunahitaji kujua bandari ambayo QRServer ni mbio.
Mimi ikifuatiwa hatua hizi kwa Machapisho hayo:
- Kuingia katika tovuti FAST admin (http://server:port/admin).
- Nenda kwenye Overview System.
- Locate "Search Dispatcher" na bonyeza icon spyglass:
- Mimi mafanikio kutumika thamani, 15100 for "Info Name" = "http":
Maelezo:
1. Bandari 15100 appears to be the default out-of-the-box port number for the QRServer.
2. Kutumia hii kanuni sawa na yafuatayo instantiate uhusiano na FAST:
ISearchFactory searchFactory; NameValueCollection nameValueCollection = mpya 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. Kama pick bandari wildly sahihi, kupata msaada makosa ujumbe:
4. Hata hivyo, kama wewe kuchukua idadi bandari waliotajwa kwenye maelezo ya (15102) you don’t get that helpful error message. Badala yake, baadaye wakati wewe kujaribu kupata data yoyote kupitia kutafuta au rejea maoni FAST, 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".
</mwisho>
Nimeona hii muhimu sana, Paulo. Shukrani kwa kushirikiana hii. Mimi si wametumwa na kozi yoyote ya kufunga mafunzo na mimi tumekuwa kujaribu kubadili mhandisi ESP sehemu ya mtandao wa mradi katika codeplex kujenga mfano ushahidi-ya-dhana.