Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Smart Search no longer working View modes: 
User avatar
Member
Member
john - 12/21/2010 1:02:43 PM
   
Smart Search no longer working
We recently moved our site to another provider. Since doing this, Smart Seach is no longer working and is throwing errors in the event log. See code
Event ID: 	409844
Event type: Error
Event time: 12/21/2010 12:58:31 PM
Source: Smart search
Event code: SEARCH
IP address: 209.163.156.82

Description: Message: Object reference not set to an instance of an object.
Stack Trace:
at Lucene.Net.Store.FSIndexInput.ReadInternal(Byte[] b, Int32 offset, Int32 len)
at Lucene.Net.Store.BufferedIndexInput.ReadBytes(Byte[] b, Int32 offset, Int32 len)
at Lucene.Net.Index.CompoundFileReader.CSIndexInput.ReadInternal(Byte[] b, Int32 offset, Int32 len)
at Lucene.Net.Store.BufferedIndexInput.Refill()
at Lucene.Net.Store.BufferedIndexInput.ReadByte()
at Lucene.Net.Store.IndexInput.ReadVInt()
at Lucene.Net.Index.TermBuffer.Read(IndexInput input, FieldInfos fieldInfos)
at Lucene.Net.Index.SegmentTermEnum.Next()
at Lucene.Net.Index.SegmentTermEnum.ScanTo(Term term)
at Lucene.Net.Index.TermInfosReader.ScanEnum(Term term)
at Lucene.Net.Index.TermInfosReader.Get(Term term)
at Lucene.Net.Index.SegmentReader.DocFreq(Term t)
at Lucene.Net.Index.MultiReader.DocFreq(Term t)
at Lucene.Net.Search.IndexSearcher.DocFreq(Term term)
at Lucene.Net.Search.MultiSearcher.DocFreq(Term term)
at Lucene.Net.Search.Similarity.Idf(Term term, Searcher searcher)
at Lucene.Net.Search.TermQuery.TermWeight..ctor(TermQuery enclosingInstance, Searcher searcher)
at Lucene.Net.Search.TermQuery.CreateWeight(Searcher searcher)
at Lucene.Net.Search.BooleanQuery.BooleanWeight..ctor(BooleanQuery enclosingInstance, Searcher searcher)
at Lucene.Net.Search.BooleanQuery.BooleanWeight2..ctor(BooleanQuery enclosingInstance, Searcher searcher)
at Lucene.Net.Search.BooleanQuery.CreateWeight(Searcher searcher)
at Lucene.Net.Search.Query.Weight(Searcher searcher)
at Lucene.Net.Search.Hits..ctor(Searcher s, Query q, Filter f, Sort o)
at Lucene.Net.Search.Searcher.Search(Query query, Sort sort)
at CMS.SiteProvider.SearchHelper.Search(String searchFor, Sort searchSort, String path, String classNames, String currentCulture, String defaultCulture, Boolean combineWithDefaultCulture, Boolean checkPermissions, Boolean searchInAttachments, String searchIndexes, Int32 displayResults, Int32 startingPosition, Int32 numberOfProcessedResults, UserInfo user, Int32& numberOfResults, String attachmentWhere, String attachmentOrderBy)

Machine name: CMSWEB02
Event URL: /Search.aspx?SearchText=water

User avatar
Member
Member
john - 12/21/2010 1:39:28 PM
   
RE:Smart Search no longer working
I have also noticed that rebuilding and updating the index is also throwing an exception.

Event ID: 409900
Event type: Error
Event time: 12/21/2010 1:32:59 PM
Source: Smart search
Event code: REBUILD
IP address:

Description: Message: Lock obtain timed out: SimpleFSLock@C:\Domains\livestrong.org\App_Data\CMSModules\SmartSearch\LivestrongSmartSearch\write.lock
Stack Trace:
at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, Boolean closeDir)
at Lucene.Net.Index.IndexWriter.Init(String path, Analyzer a, Boolean create)
at Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create)
at CMS.SiteProvider.SearchIndexInfo.GetWriter(Boolean create)
at CMS.SiteProvider.SearchHelper.Rebuild(SearchIndexInfo srchInfo, String cultures, List`1 sites, Hashtable allowedNodes, Hashtable excludedNodes, Boolean fullRebuild)
at CMS.SiteProvider.SearchHelper.Rebuild(SearchIndexInfo srchInfo)

Machine name: CMSWEB01
Event URL:

User avatar
Member
Member
john - 12/21/2010 3:50:54 PM
   
RE:Smart Search no longer working
This is resolved..

The new host did not have the IUser account available for the AppData/ folder. Therefore they could not read, or create the new search index.