All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Search index lost on channel import with DataGrab

Jonathan Persson 24 Nov 2011 15:43 problem, complete

Hi,

I import entries into one of my channels using DataGrab. When data is imported Low Search resets the index but does not build a new one, which results in the newly imported entries not being searchable - unless i manually build the index.
Maybe building of indexes could be scheduled via Automatee or similar?
Could you look into this?

Thanks,
Jonathan

Replies

  1. Low 24 Nov 2011 16:26

    Actually, Low Search secretly has a URL you can call to rebuild the index, meant for CRON jobs and such. It's not yet documented, 'cause I need to change it just a bit and it's not fully supported yet. But if you want, you could use it right now. To get the URL you need, follow these steps:

    * In the table exp_actions, look up the record with 'Low_search' as class and 'build_index' as method. Remember the action_id associated with it, for example: 20.
    * Look up the collection id you want to rebuild. for example: 5

    Your URL should look like this: http://example.com/index.php?ACT=20&c...

    Please note that this will rebuild the index in one go so I might cause a timeout or memory issues in PHP if the collection is big and you're requesting it via the browser.

  2. Jonathan Persson 24 Nov 2011 16:42

    Thanks, will look into this!
    Are you planning an official release of this functionality?

  3. Low 25 Nov 2011 08:18

    It will probably be supported sometime, but I need to do some proper testing before I do.