summaryrefslogtreecommitdiff
path: root/modules/search/helpers
AgeCommit message (Collapse)Author
2009-07-09Revert "Add task logging to the "Update Search Index" task"Tim Almdal
This reverts commit 6ac5238b83d58824eb9327406a2ee50b7e603214.
2009-07-08Add task logging to the "Update Search Index" taskTim Almdal
2009-06-24SQL is case insensitiveRomain LE DISEZ
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-24Improve compatibility with other RDBMSRomain LE DISEZ
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-23Refactor the install/upgrade code to be more flexible.Bharat Mediratta
Add xxx_installer::upgrade($version) method so that upgrade stanzas are separate from install stanzas. In the old code, to do an upgrade meant that you had to re-evolve everything from the initial install because we'd step through each version's changes. But what we really want is for the initial install to start off in the perfect initial state, and the upgrades to do the work behind the scenes. So now the install() function gets things set up properly the first time, and the upgrade() function does any work to catch you up to the latest code. See gallery_installer.php for a good example.
2009-05-26clean up whitespace errors introduced in last commitBharat Mediratta
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-20Avoid complex inserts in available_tasks() to make admin/maintenanceBharat Mediratta
run faster. This fixes ticket #235. Incidentally, refactor exif and search to use the same patterns overall so that if you understand one, you understand the other and they generally use the same strings for localization.
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-11Index photos as they're addedBharat Mediratta
2009-05-10Use a clearer query syntax for deleting extra search and exif records ↵Bharat Mediratta
(thanks Romain LE DISEZ)
2009-04-21Remove duplicate word from status messageTim Almdal
2009-04-21Make the task iteration duration 1 second instead of 500ms.Bharat Mediratta
2009-04-21Add a key on item_id for the search_records table so that when we leftBharat Mediratta
join it against the item table to find missing ids it's fast.
2009-04-17Make the update_index task continue until it has used half a secondBharat Mediratta
before stopping. This is *way* more efficient than just doing 2 per request.
2009-03-26Gracefully deal with the case where we resume a stalled task but thereBharat Mediratta
was no work left to be done. This fixes a divide by zero error.
2009-03-21Refactor all translation strings that have ambiguous placeholders.Andy Staudacher
E.g. "%link_startClick here%link_end" is now '<a href="%url">Click here</a>'. Note: This isn't always the best solution. E.g. consider "Foo <a href='%url' class='gDialogLink'>bar</a>." Now the translator has to deal with preserving CSS classes too...
2009-03-18Remove back ticks from sqlTim Almdal
2009-03-18Couple of sql statements that had incorrect prefix handling or noTim Almdal
prefix handling.
2009-03-12Strip down the loin page (not sure if this is what bharat had in mind)Tim Almdal
2009-03-09Get rid of Task_Definition types: they're not necessary. ThisBharat Mediratta
incidentally fixes the the problem that admin/maintenance tasks have been broken.
2009-03-05Avoid using default task types. Require task::get_definitions() toBharat Mediratta
specify a single type and ask for it appropriately in admin_maintenance. Specify a type for every existing task.
2009-03-03Fix issue identified by security review... some table names where notTim Almdal
being translated.
2009-02-28Change the pattern to identify tables that need prefix substitution toTim Almdal
mirror the drupal pattern of using braces {}.
2009-02-27This implements table prefix for all the queries in core, user, exif,Tim Almdal
tag, search, comment and notification modules (Ticket #68)
2009-02-12Corrected indentationTim Almdal
2009-02-12Correct typo in variable nameTim Almdal
2009-02-02Have the quick delete file "item_before_delete" so that search andTim Almdal
notification modules can do their thing. In addition, correct search so it works properly and doesn't try to create an Item_id_Model class.
2009-02-02Reconcile search_records and items when we list the tasks so that we can ↵Bharat Mediratta
tell if there're any out of date records that need updating
2009-02-02First time running search maintenance task, remove any search_recordsBharat Mediratta
that are missing matching items.
2009-01-18Change the event handlers for maintaining the search index to updateTim Almdal
the index when items change.
2009-01-18Remove blank line at the top of the fileTim Almdal
2009-01-18Update the index right away if there are only < 10 itemsBharat Mediratta
2009-01-18Rename theme callback helpers from xxx_block to xxx_theme to make roomBharat Mediratta
for us to rename the dashboard helper to be a block helper since sidebar blocks are not just in the dashboard.
2009-01-17Fix typo.. rebuild_index -> update_indexBharat Mediratta
2009-01-17Fix a silly bug in item_created()Bharat Mediratta
2009-01-17Implement relevance ranked boolean searching on a full text index ofBharat Mediratta
item and comment data. Whew! It's not pretty yet. And you have to manually update the index currently in admin/maintenance. But it works.
2009-01-14Make sure that helper functions are all static. Add newBharat Mediratta
File_Structure_Test to make sure we don't regress. According to the PHP docs, the "public" keyword is implied on static functions, so remove it. Also, require private static functions to start with an _. http://php.net/manual/en/language.oop5.visibility.php
2008-12-13Layout cleanup and simplification. Move view-mode buttons into sidebar, ↵Chad Kieffer
search to header_top. Reduced borders. Started album grid improvements. Minor white space improvements. Still need to handle text/photo alignment in album grid, improve placement of search.
2008-11-27Centralize logging around installing/uninstalling modules.Bharat Mediratta
2008-11-23Move search out into its own module and have it display its link atBharat Mediratta
the header_bottom() insertion point.