not sure if you can write your own method to just reindex one specific item and add the extra fields so no need to rebuild its not like db table where you have to add the column then you can add the data, lucene will just shove in the field. Thats with standard lucene you may need to write your own method for the examine abstraction.
I looked through the code and looks like ReIndexNode will do the trick, it first deletes any documents and then internally calls a AddSingleNode method :)
We have a forum with over a million posts, was thinking of indexing the data so we can use the data (for various reasons). Also the built in forum search times out (its also built in classic asp). I have just indexed 100,000 posts which took about 40 minutes and ended up at 88mb and searching is super fast. My code is anything different from Aaron posted here http://www.farmcode.org/post/2010/08/10/Using-Examine-to-index-search-with-ANY-data-source.aspx
Exmaine + Add data to existing index.
I've followed the code at http://www.farmcode.org/post/2010/08/10/Using-Examine-to-index-search-with-ANY-data-source.aspx which all works fine and my customer indexer, searher are all working fine. I can see a methods to ReIndexNode, DeleteNode, ReindexAll but how do add new data without deleting the index and reindexing.
skiltz,
not sure if you can write your own method to just reindex one specific item and add the extra fields so no need to rebuild its not like db table where you have to add the column then you can add the data, lucene will just shove in the field. Thats with standard lucene you may need to write your own method for the examine abstraction.
Regards
Ismail
Thanks Ismail.
I looked through the code and looks like ReIndexNode will do the trick, it first deletes any documents and then internally calls a AddSingleNode method :)
-skiltz
Skiltz,
what is your custom indexer doing indexing database? If possible could you post some code would be good to see how you have done it.
Regards
Ismail
Skiltz,
Ignore last post i just read the blog post properly and downloaded the sample zip RTFM ;-}
Regards
Ismail
We have a forum with over a million posts, was thinking of indexing the data so we can use the data (for various reasons). Also the built in forum search times out (its also built in classic asp). I have just indexed 100,000 posts which took about 40 minutes and ended up at 88mb and searching is super fast. My code is anything different from Aaron posted here http://www.farmcode.org/post/2010/08/10/Using-Examine-to-index-search-with-ANY-data-source.aspx
Skiltz,
Nice. Is the forum part of Umbraco site so are you doing like a combined site and forum search or is it standalone forum.
Regards
Ismail
is working on a reply...