Here is some code that shows all available views from a ವೇಗ server based on the named QRServer (ನಾವು ಸಂವಹನ ಯಾವ ಸರ್ವರ್ ಪ್ರಕ್ರಿಯೆ). I offer this up to give you all a taste of what it’s like to use the provided FAST API.
ಬಳಸಿ System; ಬಳಸಿ 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; namespace Conchango { ವರ್ಗ EnumerateFASTViews { ಸ್ಥಿರ ಶೂನ್ಯವಾಗುವ Main(ದಾರ[] args) { 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); Console.WriteLine("Total Views: [" + searchFactory.GetSearchViewList().Count + "]."); ಇಂಟ್ i = 0; foreach (ಉದ್ದೇಶ o ಇನ್ searchFactory.GetSearchViewList()) { Console.WriteLine("View [" + i + "]: [" + o.ToString() + "]."); } Console.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 🙂
</ಕೊನೆಯಲ್ಲಿ>