VisualStudioFeeds

All Visual Studio blogs in one place

AddThis Social Bookmark Button
Originally posted at 12/15/2010Yesterday I asked what is wrong with the following code: public ISet GetTerms(string index, string field) { if(field == null) throw new ArgumentNullException("field"); if(index == null) throw new ArgumentNullException("index"); var result = new HashSet();
var currentIndexSearcher = database.IndexStorage.GetCurrentIndexSearcher(index); IndexSearcher searcher; using(currentIndexSearcher.Use(out searcher)) { var termEnum = searcher.GetIndexReader().Terms(new Term(field)); while (field.Equals(termEnum.Term().Field())) { ...(Read whole news on source site)

Search

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Home : Blog List : VibrantCode : Answer: This code should never hit production