Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • skiltz 501 posts 701 karma points
    Jan 26, 2011 @ 09:39
    skiltz
    1

    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.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jan 26, 2011 @ 12:39
    Ismail Mayat
    0

    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

  • skiltz 501 posts 701 karma points
    Jan 27, 2011 @ 10:03
    skiltz
    0

    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

     

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jan 27, 2011 @ 10:07
    Ismail Mayat
    0

    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

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jan 27, 2011 @ 10:12
    Ismail Mayat
    0

    Skiltz,

    Ignore last post i just read the blog post properly and downloaded the sample zip RTFM ;-}

    Regards

    Ismail

  • skiltz 501 posts 701 karma points
    Jan 27, 2011 @ 10:17
    skiltz
    0

    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

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jan 27, 2011 @ 10:21
    Ismail Mayat
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft