Copied to clipboard

Flag this post as spam?

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


  • Richard Adams 5 posts 45 karma points
    Sep 27, 2013 @ 11:49
    Richard Adams
    0

    Examine Search Remotely Generated Search Index / Remotely located Server Index

    Hi All,

    Firstly I was not sure if this query should go in the API section or the Extending Umbraco section of the forum so I apologise if it's in the wrong place.

    I have a couple of probably very basic questions related to Examine.

    First one is probably more to do with Lucene than Examine itself but as we will be using Examine on Umbraco  maybe someone would know the answer.

    If I were to create a lucene index in a seperate application (not Umbraco) and generate the index, could I then re-use that index if I configure the examine correctly and copy all the files to the AppCode/ExamineIndexes folder, or are there any fundemental differences between the format of index required by Examine and the general lucene index?


    Second question is connected.

    Is it possible to configure Examine to search against an index on a remote server / file share?

    Basically we have an Ecommerce site, containing products, and we would like to index the products using lucene and then have that index available both on the Ecommerce site and Umbraco without adding them as documents / nodes and keep them in line and I am trying to figure out the difference possiblities.


    Any advice you could provide would be gratefully received.

    Thanks,

    Richard

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Sep 27, 2013 @ 13:56
    Ismail Mayat
    100

    Richard,

    Cross searching indexes is done using mulitsearcher in examine. This works for indexes created by examine this is becuase the examine configs are used to tell it where to get the index folders etc.

    Out of the box if the index is not created by examine you cannot search on it. If you do configure the index you would need to configure it as an examine index type e.g content / pdf. If you did that then on rebuild site reload etc it would re build the indexes and over write your indexes also it would be expecting umbraco content and not your stuff.

    So one way you could do it and i did have a rough prototype is create your own indexer see https://github.com/Shandem/Examine/wiki/Indexer create it as simpledataindexer but in the code return nothing back. In the ExamineIndex config set the index path to your remote server file share. As long as you do not rebuild the index from umbraco it should never delete the remote index so you will always have stuff in it which has been created from your existing code.

    IT SHOULD IN THEORY WORK but don't hold me to it we are pushing it lol!

    The other option is to create simpledataindexer and call the code or use the code that does your indexing of ecommerce products so then you have an examine index but then in effect you are not reusing your existing index but creating a copy of it that examine knows about.

    Regards

    Ismail

  • Richard Adams 5 posts 45 karma points
    Sep 30, 2013 @ 10:05
    Richard Adams
    0

    Thank you very much Ismail.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Sep 30, 2013 @ 10:18
    Ismail Mayat
    0

    Richard,

    Let me know how you get on with this as I am interested in whether it will work. I guess also thing you may want to do is the remote share that contains the index make it read only for the domain account that will access it that way you can be sure there is no way for examine to rebuild it.

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft