Here is some code that shows all available views from a ફાસ્ટ server based on the named QRServer (the server process with which we communicate). I offer this up to give you all a taste of what it’s like to use the provided FAST API.
નો ઉપયોગ પદ્ધતિ; નો ઉપયોગ System.Collections.Generic; નો ઉપયોગ System.Linq; નો ઉપયોગ System.Text; નો ઉપયોગ Com.FastSearch.Esp.Search; નો ઉપયોગ Com.FastSearch.Esp.Search.Http; નો ઉપયોગ Com.FastSearch.Esp.Search.Navigation; નો ઉપયોગ Com.FastSearch.Esp.Search.Query; નો ઉપયોગ Com.FastSearch.Esp.Search.Result; નો ઉપયોગ Com.FastSearch.Esp.Search.View; નો ઉપયોગ System.Collections.Specialized; નો ઉપયોગ System.Collections; નામસ્થળ Conchango { વર્ગ EnumerateFASTViews { સ્થિર ગેરમાન્ય મુખ્ય(સ્ટ્રિંગ[] વિકલ્પોલેછે) { ISearchFactory searchFactory; NameValueCollection nameValueCollection = નવું 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", "GET"); searchFactory = SearchFactory.NewInstance(nameValueCollection); કન્સોલ.WriteLine("Total Views: [" + searchFactory.GetSearchViewList().Count + "]."); ઈન્ i = 0; foreach (પદાર્થ શૂન્ય અથવા કશું નહિ માં searchFactory.GetSearchViewList()) { કન્સોલ.WriteLine("View [" + i + "]: [" + o.ToString() + "]."); } કન્સોલ.ReadLine(); } } }
Note that I consider myself a barely competent C# programmer and I have thin skin, so don’t send any raspberries my way, especially re: the "foreach (object o in …)" construct 🙂
</અંત>