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
|
Hi Guys,
We are looking using LightSpeed full-text index search feature at the moment. Our question is around options to build search index incrementally. From looking at the API of SearchEngine (Lucene implementation), it only allow us either rebuild the index from scratch or update/add at entity level. We are wondering if there is an alternative to build index incrementally without remembering what has been change since the last index build. Thanks in advance. Nathan |
|
|
Hi Nathan, LightSpeed will automatically update the index based on entity activities. For example, if you create a new entity and save it, LightSpeed will add it to the Lucene index at the same time. If you delete an entity it will remove that entity. The rebuild function is more for when you have a need to rebuild the entire index - something you shouldn't have to do often. For example, if you later your model to index new fields, or customise the text to be indexed then you would want to rebuild an existing system. One thing to consider when using the full text index is how your UnitOfWork and your Transactions are used. Read more here: http://www.mindscape.co.nz/forums/Post.aspx?ThreadID=1879&PostID=4810 I hope that helps, John-Daniel Trask |
|
|
Hi JD, Thanks for your quick reply. It helps a lot. We don't use TransactionScope in our app at the moment. I've just marked couple of property of an entity with Index attribute and specified the search engine and index file location in the web.config file. But I couldn't find the index file after insert/update data from the app. Is there anything I miss here? Thanks in advance. Regards, Nathan |
|