Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var solr = ServiceLocator.Current.GetInstance<ISolrOperations<SearchResult>>();
- solr.Add(new SearchResult()
- {
- Id = "TestID",
- Text = "Mike Bravo Johnson",
- Type = "TESTObject"
- }
- );
- solr.Commit();
- solr.Optimize();
Advertisement
Add Comment
Please, Sign In to add comment