aboutsummaryrefslogtreecommitdiffstats
path: root/vendor
Commit message (Collapse)AuthorAgeLines
* Revert small unintended changeRobin Houston2012-02-01-1/+1
| | | | | | Revert a small part of 33f8ef66084bbfb61bf0b4e0f53e1da5e7cc84dc, which was not intended, so that the behaviour is unchanged if a xapian database doesn’t exist, say.
* Close xapian db before opening it againRobin Houston2012-01-31-7/+10
| | | | | | This *ought* to fix the problem with the alert-tracks daemon opening more and more copies of the xapian db till it exhausts the available file descriptors.
* Do not require Xapian 1.2.7Robin Houston2012-01-19-1/+10
| | | | Work (with subtly reduced resilience) on earlier versions.
* Merge branch 'wdtk' of https://github.com/sebbacon/alaveteli into wdtkRobin Houston2012-01-19-1/+1
|\ | | | | | | | | Conflicts: app/controllers/application_controller.rb
| * Disable Xapian wildcardsRobin Houston2012-01-19-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Do not use FLAG_WILDCARD or FLAG_PARTIAL anywhere, because wildcard searches can crash the whole server as per http://trac.xapian.org/ticket/350 (e.g. http://www.whatdotheyknow.com/body/search_ahead?query=app will crash the server prior to this commit.) This is a temporary fix while we investigate the possibilities of the set_max_wildcard_expansion() method, which should make it possible to alleviate this issue.
* | Limit Xapian wildcard expansionsRobin Houston2012-01-19-0/+1
|/ | | | | | | | | | | Wildcard searches in Xapian can expand uncontrollably, consuming all available RAM and crashing the server. This has been a real problem on WhatDoTheyKnow.com. The underlying issue is tracked in http://trac.xapian.org/ticket/350 This changeset imposes a limit on wildcard expansion. The type-ahead search will first try a wildcard query, and if that fails because of too much expansion will fall back to a plain non-wildcard search.
* Actually do a proper ORed and partial match query, rather than fix parsing ↵Seb Bacon2012-01-17-6/+9
| | | | errors ad hoc as I find them that result from the workaround code. Fixes #328 (for good, I hope).
* Fail silently if third party services are broken or unavailable. Fixes #354.Seb Bacon2012-01-17-0/+6253
|
* Fix constant name in stringRobin Houston2012-01-16-1/+1
|
* Fix "uninitialized class variable @@db in ActsAsXapian::QueryBase" bug ↵Seb Bacon2012-01-14-1/+1
| | | | introduced in 0aafbd4a25b5c4c0edbd87c2224dcdd18388ede5
* fix typoSeb Bacon2012-01-13-2/+2
|
* Make sure acts_as_xapian is loaded only onceRobin Houston2012-01-12-7/+11
| | | | | | | | | | | This silences the warnings: warning: already initialized constant MSET_MAX_TRIES warning: already initialized constant MSET_MAX_DELAY coming from vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb and also resolves an XXXX-marked issue.
* Retry if we get a DatabaseModifiedError from XapianRobin Houston2012-01-12-1/+24
|
* Ensure we always clean up after reindexes correctly (fix nasty ↵Seb Bacon2012-01-11-3/+7
| | | | low-predecence binding of OR operator, and also make sure we always reset dp_path).
* Really don’t require flint formatRobin Houston2012-01-09-1/+1
|
* Do not print useless message into the log file.Seb Bacon2012-01-09-1/+1
|
* Send email notifications on exceptionsSeb Bacon2012-01-09-0/+516
|
* Ensure xapian database is always created before starting index updateSeb Bacon2012-01-09-1/+1
|
* Fix syntax errorSeb Bacon2012-01-06-1/+2
|
* Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5Seb Bacon2012-01-06-3/+7
|\ | | | | | | | | Conflicts: vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
| * Do not force flint database formatRobin Houston2012-01-06-4/+8
| |
* | Reduce excess flush operations (they're slooow)Seb Bacon2012-01-06-17/+14
| |
* | Further work in progressSeb Bacon2012-01-06-7/+6
| |
* | more work in progressSeb Bacon2012-01-06-31/+39
| |
* | typoSeb Bacon2012-01-06-1/+1
| |
* | initial noodlings with writable / readable database reopeningSeb Bacon2012-01-06-19/+21
|/
* Consistently parse arguments to xapain:rebuild_indexSeb Bacon2012-01-06-4/+15
|
* add ability to rebuild specific terms rather than all indices -- useful for ↵Seb Bacon2011-12-05-34/+100
| | | | migrations where new terms have been added (see rake:xapian:rebuild_index help)
* Merge branch 'develop' into xapian-dcaboSeb Bacon2011-11-24-1/+1
|\ | | | | | | | | Conflicts: spec/models/xapian_spec.rb
| * sort hash keys consistently in Ruby 1.8 and 1.9James McKinney2011-10-17-1/+1
| |
| * update rails-locales to a version that works with Ruby 1.9James McKinney2011-10-16-0/+0
| |
* | Merge branch 'develop' into xapian-dcaboseb2011-11-24-137/+20765
|\| | | | | | | | | Conflicts: spec/models/xapian_spec.rb
| * Patch FastGettext to handle plural forms correctly. Fixes #248David Cabo2011-10-05-2/+6
| |
| * Store user's locale against profile, so we can send them localised track ↵Seb Bacon2011-09-03-111/+0
| | | | | | | | emails. Also internationalize more strings at the same time. Fixes #163.
| * Merge branch 'develop' of github.com:sebbacon/alaveteli into developRobin Houston2011-08-31-3/+3
| |\
| | * Only index multiple locales in single index for text indicesSeb Bacon2011-08-29-3/+3
| | |
| * | Add rdoc as dependency and update gem specification files (suppress more ↵Seb Bacon2011-08-29-21/+55
| |/ | | | | | | noisy output from rake)
| * Add rdoc 2.4.3 to vendor/gemsRobin Houston2011-08-24-0/+20701
| |
| * Update to latest version of Rails 2.3.x. Alaveteli users should remember to ↵Seb Bacon2011-08-17-0/+0
| | | | | | | | run 'git submodule update'. Fixes #145
* | Make Xapian index rebuilds run in-process (while running tests only!) for ↵David Cabo2011-08-19-30/+47
| | | | | | | | | | | | performance reasons This was previously not supported by acts_as_xapian, since the update/rebuild process didnt unlock the database when finihed. The bindings for the latest Xapian bindings support closing the database, so we take advantage of that.
* | Clean up commentsDavid Cabo2011-08-18-0/+2
| |
* | Testing Xapian test performanceDavid Cabo2011-08-16-0/+2
|/
* Forwards compatibility with newer versions of Xapian. Fixes #101Seb Bacon2011-08-10-1/+1
|
* changes to get tests to pass with IZ fork and new routing-filter gemSeb Bacon2011-07-11-4/+3
|
* use routing-filter gem to prepend locale to URLSeb Bacon2011-07-07-0/+1588
|
* Remove the translate_routes plugin, for now, because it appears toRobin Houston2011-07-06-812/+0
| | | | be the cause of several difficult bugs related to routing.
* Give a more useful exception message if the Xapian database cannot be ↵Robin Houston2011-06-29-3/+3
| | | | opened, including the database path and actual error
* Silence another deprecation warning, this time just by muting it (since ↵Robin Houston2011-06-17-4/+10
| | | | | | there is no obvious fix). See also https://github.com/joshmh/globalize2/issues/42
* Move the rake task from the translate_routes plugin into the (new?) standard ↵Robin Houston2011-06-17-0/+0
| | | | directory, to avoid an annoying warning message.
* Make sure the previous locale is restored on block exit, even if theSeb Bacon2011-06-13-3/+6
| | | | block was left via return.