This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I am running a weekly scheduled task: pulling down 300k+ rows from a remote data source, running a transformation, and storing it locally with full-text index (i.e. optimised, local cache with full-text index). My issue is that the (Lucene) indexing runs in the background, creating the index as the records are being inserted. I would prefer to import all the rows and then run the index rebuild separately. Is there a way to disable the indexing temporarily, or any suggestions for an alternative method? I though about creating two data models pointing to the same database, one with the Lucene full-text indexing configuration and one without. But was wondering for a more elegant solution. |
|
|
Yes you can disable the search indexing by removing the SearchEngine from your context. To do a rebuild you can call SearchEngine.Rebuild and pass in the types involved to do a re-index of that data - bear in mind this may be an expensive operation!
|
|