thinking-sphinx 3.4.2 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +20 -18
- data/Appraisals +28 -16
- data/CHANGELOG.markdown +538 -0
- data/Gemfile +9 -11
- data/README.textile +23 -31
- data/Rakefile +2 -0
- data/bin/console +2 -1
- data/bin/loadsphinx +29 -2
- data/lib/thinking-sphinx.rb +2 -0
- data/lib/thinking/sphinx.rb +2 -0
- data/lib/thinking_sphinx.rb +24 -13
- data/lib/thinking_sphinx/active_record.rb +10 -1
- data/lib/thinking_sphinx/active_record/association.rb +2 -0
- data/lib/thinking_sphinx/active_record/association_proxy.rb +2 -0
- data/lib/thinking_sphinx/active_record/association_proxy/attribute_finder.rb +2 -0
- data/lib/thinking_sphinx/active_record/association_proxy/attribute_matcher.rb +2 -0
- data/lib/thinking_sphinx/active_record/attribute.rb +2 -0
- data/lib/thinking_sphinx/active_record/attribute/sphinx_presenter.rb +2 -0
- data/lib/thinking_sphinx/active_record/attribute/type.rb +2 -0
- data/lib/thinking_sphinx/active_record/attribute/values.rb +2 -0
- data/lib/thinking_sphinx/active_record/base.rb +2 -0
- data/lib/thinking_sphinx/active_record/callbacks/delete_callbacks.rb +2 -0
- data/lib/thinking_sphinx/active_record/callbacks/delta_callbacks.rb +2 -0
- data/lib/thinking_sphinx/active_record/callbacks/update_callbacks.rb +2 -0
- data/lib/thinking_sphinx/active_record/column.rb +2 -0
- data/lib/thinking_sphinx/active_record/column_sql_presenter.rb +2 -0
- data/lib/thinking_sphinx/active_record/database_adapters.rb +2 -0
- data/lib/thinking_sphinx/active_record/database_adapters/abstract_adapter.rb +2 -0
- data/lib/thinking_sphinx/active_record/database_adapters/mysql_adapter.rb +2 -0
- data/lib/thinking_sphinx/active_record/database_adapters/postgresql_adapter.rb +2 -0
- data/lib/thinking_sphinx/active_record/depolymorph/association_reflection.rb +32 -0
- data/lib/thinking_sphinx/active_record/depolymorph/base_reflection.rb +32 -0
- data/lib/thinking_sphinx/active_record/depolymorph/conditions_reflection.rb +40 -0
- data/lib/thinking_sphinx/active_record/depolymorph/overridden_reflection.rb +35 -0
- data/lib/thinking_sphinx/active_record/depolymorph/scoped_reflection.rb +26 -0
- data/lib/thinking_sphinx/active_record/field.rb +2 -0
- data/lib/thinking_sphinx/active_record/filter_reflection.rb +13 -71
- data/lib/thinking_sphinx/active_record/index.rb +2 -0
- data/lib/thinking_sphinx/active_record/interpreter.rb +2 -0
- data/lib/thinking_sphinx/active_record/join_association.rb +2 -0
- data/lib/thinking_sphinx/active_record/log_subscriber.rb +2 -0
- data/lib/thinking_sphinx/active_record/polymorpher.rb +2 -0
- data/lib/thinking_sphinx/active_record/property.rb +2 -0
- data/lib/thinking_sphinx/active_record/property_query.rb +2 -0
- data/lib/thinking_sphinx/active_record/property_sql_presenter.rb +2 -0
- data/lib/thinking_sphinx/active_record/simple_many_query.rb +2 -0
- data/lib/thinking_sphinx/active_record/source_joins.rb +2 -0
- data/lib/thinking_sphinx/active_record/sql_builder.rb +2 -0
- data/lib/thinking_sphinx/active_record/sql_builder/clause_builder.rb +2 -0
- data/lib/thinking_sphinx/active_record/sql_builder/query.rb +2 -0
- data/lib/thinking_sphinx/active_record/sql_builder/statement.rb +2 -0
- data/lib/thinking_sphinx/active_record/sql_source.rb +15 -3
- data/lib/thinking_sphinx/active_record/sql_source/template.rb +2 -0
- data/lib/thinking_sphinx/attribute_types.rb +2 -0
- data/lib/thinking_sphinx/batched_search.rb +2 -0
- data/lib/thinking_sphinx/callbacks.rb +2 -0
- data/lib/thinking_sphinx/capistrano.rb +2 -0
- data/lib/thinking_sphinx/capistrano/v2.rb +2 -0
- data/lib/thinking_sphinx/capistrano/v3.rb +2 -0
- data/lib/thinking_sphinx/commander.rb +27 -0
- data/lib/thinking_sphinx/commands.rb +20 -0
- data/lib/thinking_sphinx/commands/base.rb +9 -1
- data/lib/thinking_sphinx/commands/clear_real_time.rb +22 -0
- data/lib/thinking_sphinx/commands/clear_sql.rb +18 -0
- data/lib/thinking_sphinx/commands/configure.rb +2 -0
- data/lib/thinking_sphinx/commands/index_real_time.rb +17 -0
- data/lib/thinking_sphinx/commands/index_sql.rb +25 -0
- data/lib/thinking_sphinx/commands/merge.rb +27 -0
- data/lib/thinking_sphinx/commands/merge_and_update.rb +57 -0
- data/lib/thinking_sphinx/commands/prepare.rb +13 -0
- data/lib/thinking_sphinx/commands/rotate.rb +13 -0
- data/lib/thinking_sphinx/commands/running.rb +13 -0
- data/lib/thinking_sphinx/commands/start_attached.rb +2 -0
- data/lib/thinking_sphinx/commands/start_detached.rb +3 -1
- data/lib/thinking_sphinx/commands/stop.rb +4 -2
- data/lib/thinking_sphinx/configuration.rb +28 -47
- data/lib/thinking_sphinx/configuration/consistent_ids.rb +2 -0
- data/lib/thinking_sphinx/configuration/defaults.rb +2 -0
- data/lib/thinking_sphinx/configuration/distributed_indices.rb +2 -0
- data/lib/thinking_sphinx/configuration/duplicate_names.rb +2 -0
- data/lib/thinking_sphinx/configuration/minimum_fields.rb +2 -0
- data/lib/thinking_sphinx/connection.rb +4 -5
- data/lib/thinking_sphinx/connection/client.rb +21 -0
- data/lib/thinking_sphinx/connection/jruby.rb +7 -2
- data/lib/thinking_sphinx/connection/mri.rb +2 -4
- data/lib/thinking_sphinx/core.rb +2 -0
- data/lib/thinking_sphinx/core/field.rb +2 -0
- data/lib/thinking_sphinx/core/index.rb +4 -1
- data/lib/thinking_sphinx/core/interpreter.rb +2 -0
- data/lib/thinking_sphinx/core/property.rb +2 -0
- data/lib/thinking_sphinx/core/settings.rb +2 -0
- data/lib/thinking_sphinx/deletion.rb +2 -0
- data/lib/thinking_sphinx/deltas.rb +2 -0
- data/lib/thinking_sphinx/deltas/default_delta.rb +2 -0
- data/lib/thinking_sphinx/deltas/delete_job.rb +2 -0
- data/lib/thinking_sphinx/deltas/index_job.rb +9 -1
- data/lib/thinking_sphinx/distributed.rb +2 -0
- data/lib/thinking_sphinx/distributed/index.rb +2 -0
- data/lib/thinking_sphinx/errors.rb +9 -0
- data/lib/thinking_sphinx/excerpter.rb +2 -0
- data/lib/thinking_sphinx/facet.rb +4 -3
- data/lib/thinking_sphinx/facet_search.rb +4 -2
- data/lib/thinking_sphinx/float_formatter.rb +2 -0
- data/lib/thinking_sphinx/frameworks.rb +2 -0
- data/lib/thinking_sphinx/frameworks/plain.rb +2 -0
- data/lib/thinking_sphinx/frameworks/rails.rb +2 -0
- data/lib/thinking_sphinx/guard.rb +3 -0
- data/lib/thinking_sphinx/guard/file.rb +2 -0
- data/lib/thinking_sphinx/guard/files.rb +2 -0
- data/lib/thinking_sphinx/guard/none.rb +7 -0
- data/lib/thinking_sphinx/hooks/guard_presence.rb +34 -0
- data/lib/thinking_sphinx/index.rb +2 -0
- data/lib/thinking_sphinx/index_set.rb +2 -0
- data/lib/thinking_sphinx/indexing_strategies/all_at_once.rb +2 -0
- data/lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb +2 -0
- data/lib/thinking_sphinx/interfaces.rb +10 -0
- data/lib/thinking_sphinx/interfaces/base.rb +13 -0
- data/lib/thinking_sphinx/interfaces/daemon.rb +6 -11
- data/lib/thinking_sphinx/interfaces/real_time.rb +19 -14
- data/lib/thinking_sphinx/interfaces/sql.rb +22 -10
- data/lib/thinking_sphinx/logger.rb +2 -0
- data/lib/thinking_sphinx/masks.rb +2 -0
- data/lib/thinking_sphinx/masks/group_enumerators_mask.rb +6 -4
- data/lib/thinking_sphinx/masks/pagination_mask.rb +2 -0
- data/lib/thinking_sphinx/masks/scopes_mask.rb +2 -0
- data/lib/thinking_sphinx/masks/weight_enumerator_mask.rb +3 -1
- data/lib/thinking_sphinx/middlewares.rb +5 -3
- data/lib/thinking_sphinx/middlewares/active_record_translator.rb +2 -0
- data/lib/thinking_sphinx/middlewares/geographer.rb +2 -0
- data/lib/thinking_sphinx/middlewares/glazier.rb +2 -0
- data/lib/thinking_sphinx/middlewares/ids_only.rb +2 -0
- data/lib/thinking_sphinx/middlewares/inquirer.rb +2 -0
- data/lib/thinking_sphinx/middlewares/middleware.rb +2 -0
- data/lib/thinking_sphinx/middlewares/sphinxql.rb +4 -2
- data/lib/thinking_sphinx/middlewares/stale_id_checker.rb +2 -0
- data/lib/thinking_sphinx/middlewares/stale_id_filter.rb +2 -0
- data/lib/thinking_sphinx/middlewares/valid_options.rb +2 -0
- data/lib/thinking_sphinx/panes.rb +2 -0
- data/lib/thinking_sphinx/panes/attributes_pane.rb +2 -0
- data/lib/thinking_sphinx/panes/distance_pane.rb +2 -0
- data/lib/thinking_sphinx/panes/excerpts_pane.rb +2 -0
- data/lib/thinking_sphinx/panes/weight_pane.rb +3 -1
- data/lib/thinking_sphinx/query.rb +2 -0
- data/lib/thinking_sphinx/railtie.rb +2 -0
- data/lib/thinking_sphinx/rake_interface.rb +3 -1
- data/lib/thinking_sphinx/real_time.rb +3 -0
- data/lib/thinking_sphinx/real_time/attribute.rb +2 -0
- data/lib/thinking_sphinx/real_time/callbacks/real_time_callbacks.rb +2 -0
- data/lib/thinking_sphinx/real_time/field.rb +2 -0
- data/lib/thinking_sphinx/real_time/index.rb +2 -0
- data/lib/thinking_sphinx/real_time/index/template.rb +2 -0
- data/lib/thinking_sphinx/real_time/interpreter.rb +2 -0
- data/lib/thinking_sphinx/real_time/populator.rb +2 -1
- data/lib/thinking_sphinx/real_time/property.rb +2 -0
- data/lib/thinking_sphinx/real_time/transcribe_instance.rb +38 -0
- data/lib/thinking_sphinx/real_time/transcriber.rb +18 -27
- data/lib/thinking_sphinx/real_time/translator.rb +3 -1
- data/lib/thinking_sphinx/scopes.rb +2 -0
- data/lib/thinking_sphinx/search.rb +2 -0
- data/lib/thinking_sphinx/search/batch_inquirer.rb +2 -0
- data/lib/thinking_sphinx/search/context.rb +2 -0
- data/lib/thinking_sphinx/search/glaze.rb +2 -0
- data/lib/thinking_sphinx/search/merger.rb +2 -0
- data/lib/thinking_sphinx/search/query.rb +2 -0
- data/lib/thinking_sphinx/search/stale_ids_exception.rb +2 -0
- data/lib/thinking_sphinx/settings.rb +110 -0
- data/lib/thinking_sphinx/sinatra.rb +2 -0
- data/lib/thinking_sphinx/subscribers/populator_subscriber.rb +18 -0
- data/lib/thinking_sphinx/tasks.rb +13 -46
- data/lib/thinking_sphinx/test.rb +2 -0
- data/lib/thinking_sphinx/utf8.rb +2 -0
- data/lib/thinking_sphinx/wildcard.rb +2 -0
- data/lib/thinking_sphinx/with_output.rb +2 -0
- data/spec/acceptance/association_scoping_spec.rb +2 -0
- data/spec/acceptance/attribute_access_spec.rb +4 -4
- data/spec/acceptance/attribute_updates_spec.rb +2 -0
- data/spec/acceptance/batch_searching_spec.rb +2 -0
- data/spec/acceptance/big_integers_spec.rb +2 -0
- data/spec/acceptance/connection_spec.rb +2 -0
- data/spec/acceptance/excerpts_spec.rb +1 -0
- data/spec/acceptance/facets_spec.rb +2 -3
- data/spec/acceptance/geosearching_spec.rb +3 -1
- data/spec/acceptance/grouping_by_attributes_spec.rb +2 -0
- data/spec/acceptance/index_options_spec.rb +2 -0
- data/spec/acceptance/indexing_spec.rb +2 -0
- data/spec/acceptance/merging_spec.rb +90 -0
- data/spec/acceptance/paginating_search_results_spec.rb +2 -0
- data/spec/acceptance/real_time_updates_spec.rb +2 -0
- data/spec/acceptance/remove_deleted_records_spec.rb +2 -0
- data/spec/acceptance/search_counts_spec.rb +2 -0
- data/spec/acceptance/search_for_just_ids_spec.rb +2 -0
- data/spec/acceptance/searching_across_models_spec.rb +2 -0
- data/spec/acceptance/searching_across_schemas_spec.rb +2 -0
- data/spec/acceptance/searching_on_fields_spec.rb +2 -0
- data/spec/acceptance/searching_with_filters_spec.rb +2 -0
- data/spec/acceptance/searching_with_sti_spec.rb +2 -0
- data/spec/acceptance/searching_within_a_model_spec.rb +2 -0
- data/spec/acceptance/sorting_search_results_spec.rb +2 -0
- data/spec/acceptance/spec_helper.rb +2 -13
- data/spec/acceptance/specifying_sql_spec.rb +2 -0
- data/spec/acceptance/sphinx_scopes_spec.rb +2 -0
- data/spec/acceptance/sql_deltas_spec.rb +2 -0
- data/spec/acceptance/support/database_cleaner.rb +2 -0
- data/spec/acceptance/support/sphinx_controller.rb +16 -5
- data/spec/acceptance/support/sphinx_helpers.rb +11 -0
- data/spec/acceptance/suspended_deltas_spec.rb +2 -0
- data/spec/internal/app/indices/admin_person_index.rb +2 -0
- data/spec/internal/app/indices/album_index.rb +2 -0
- data/spec/internal/app/indices/animal_index.rb +2 -0
- data/spec/internal/app/indices/article_index.rb +2 -0
- data/spec/internal/app/indices/bird_index.rb +2 -0
- data/spec/internal/app/indices/book_index.rb +2 -0
- data/spec/internal/app/indices/car_index.rb +2 -0
- data/spec/internal/app/indices/city_index.rb +2 -0
- data/spec/internal/app/indices/product_index.rb +2 -0
- data/spec/internal/app/indices/tee_index.rb +2 -0
- data/spec/internal/app/indices/user_index.rb +2 -0
- data/spec/internal/app/models/admin/person.rb +2 -0
- data/spec/internal/app/models/album.rb +2 -0
- data/spec/internal/app/models/animal.rb +2 -0
- data/spec/internal/app/models/article.rb +2 -0
- data/spec/internal/app/models/bird.rb +2 -0
- data/spec/internal/app/models/book.rb +2 -0
- data/spec/internal/app/models/car.rb +2 -0
- data/spec/internal/app/models/categorisation.rb +2 -0
- data/spec/internal/app/models/category.rb +2 -0
- data/spec/internal/app/models/city.rb +2 -0
- data/spec/internal/app/models/colour.rb +2 -0
- data/spec/internal/app/models/event.rb +2 -0
- data/spec/internal/app/models/flightless_bird.rb +2 -0
- data/spec/internal/app/models/genre.rb +2 -0
- data/spec/internal/app/models/hardcover.rb +2 -0
- data/spec/internal/app/models/mammal.rb +2 -0
- data/spec/internal/app/models/manufacturer.rb +2 -0
- data/spec/internal/app/models/product.rb +2 -0
- data/spec/internal/app/models/tag.rb +2 -0
- data/spec/internal/app/models/tagging.rb +2 -0
- data/spec/internal/app/models/tee.rb +2 -0
- data/spec/internal/app/models/tweet.rb +2 -0
- data/spec/internal/app/models/user.rb +2 -0
- data/spec/internal/db/schema.rb +2 -0
- data/spec/spec_helper.rb +4 -1
- data/spec/support/json_column.rb +3 -5
- data/spec/support/multi_schema.rb +2 -0
- data/spec/support/mysql.rb +25 -0
- data/spec/support/sphinx_yaml_helpers.rb +2 -0
- data/spec/thinking_sphinx/active_record/association_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/attribute/type_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/base_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/callbacks/delete_callbacks_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/callbacks/delta_callbacks_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/callbacks/update_callbacks_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/column_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/column_sql_presenter_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/database_adapters/abstract_adapter_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/database_adapters/mysql_adapter_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/database_adapters/postgresql_adapter_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/database_adapters_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/field_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/filter_reflection_spec.rb +100 -79
- data/spec/thinking_sphinx/active_record/index_spec.rb +16 -1
- data/spec/thinking_sphinx/active_record/interpreter_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/polymorpher_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/property_sql_presenter_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/sql_builder_spec.rb +2 -0
- data/spec/thinking_sphinx/active_record/sql_source_spec.rb +2 -0
- data/spec/thinking_sphinx/attribute_types_spec.rb +2 -0
- data/spec/thinking_sphinx/commands/clear_real_time_spec.rb +46 -0
- data/spec/thinking_sphinx/commands/clear_sql_spec.rb +52 -0
- data/spec/thinking_sphinx/commands/configure_spec.rb +2 -0
- data/spec/thinking_sphinx/commands/index_real_time_spec.rb +33 -0
- data/spec/thinking_sphinx/commands/index_sql_spec.rb +86 -0
- data/spec/thinking_sphinx/commands/merge_and_update_spec.rb +106 -0
- data/spec/thinking_sphinx/commands/merge_spec.rb +48 -0
- data/spec/thinking_sphinx/commands/prepare_spec.rb +23 -0
- data/spec/thinking_sphinx/commands/start_detached_spec.rb +2 -0
- data/spec/thinking_sphinx/commands/stop_spec.rb +13 -4
- data/spec/thinking_sphinx/configuration/minimum_fields_spec.rb +2 -0
- data/spec/thinking_sphinx/configuration_spec.rb +132 -6
- data/spec/thinking_sphinx/connection_spec.rb +2 -0
- data/spec/thinking_sphinx/deletion_spec.rb +2 -0
- data/spec/thinking_sphinx/deltas/default_delta_spec.rb +8 -1
- data/spec/thinking_sphinx/deltas_spec.rb +2 -0
- data/spec/thinking_sphinx/errors_spec.rb +2 -0
- data/spec/thinking_sphinx/excerpter_spec.rb +2 -0
- data/spec/thinking_sphinx/facet_search_spec.rb +8 -6
- data/spec/thinking_sphinx/hooks/guard_presence_spec.rb +30 -0
- data/spec/thinking_sphinx/index_set_spec.rb +2 -0
- data/spec/thinking_sphinx/index_spec.rb +2 -0
- data/spec/thinking_sphinx/interfaces/daemon_spec.rb +19 -11
- data/spec/thinking_sphinx/interfaces/real_time_spec.rb +43 -43
- data/spec/thinking_sphinx/interfaces/sql_spec.rb +76 -52
- data/spec/thinking_sphinx/masks/pagination_mask_spec.rb +2 -0
- data/spec/thinking_sphinx/masks/scopes_mask_spec.rb +2 -0
- data/spec/thinking_sphinx/middlewares/active_record_translator_spec.rb +2 -0
- data/spec/thinking_sphinx/middlewares/geographer_spec.rb +2 -0
- data/spec/thinking_sphinx/middlewares/glazier_spec.rb +2 -0
- data/spec/thinking_sphinx/middlewares/inquirer_spec.rb +2 -0
- data/spec/thinking_sphinx/middlewares/sphinxql_spec.rb +2 -1
- data/spec/thinking_sphinx/middlewares/stale_id_checker_spec.rb +2 -0
- data/spec/thinking_sphinx/middlewares/stale_id_filter_spec.rb +2 -0
- data/spec/thinking_sphinx/middlewares/valid_options_spec.rb +2 -0
- data/spec/thinking_sphinx/panes/attributes_pane_spec.rb +2 -0
- data/spec/thinking_sphinx/panes/distance_pane_spec.rb +2 -0
- data/spec/thinking_sphinx/panes/excerpts_pane_spec.rb +2 -0
- data/spec/thinking_sphinx/panes/weight_pane_spec.rb +3 -1
- data/spec/thinking_sphinx/rake_interface_spec.rb +10 -8
- data/spec/thinking_sphinx/real_time/attribute_spec.rb +2 -0
- data/spec/thinking_sphinx/real_time/callbacks/real_time_callbacks_spec.rb +2 -0
- data/spec/thinking_sphinx/real_time/field_spec.rb +2 -0
- data/spec/thinking_sphinx/real_time/index_spec.rb +14 -0
- data/spec/thinking_sphinx/real_time/interpreter_spec.rb +2 -0
- data/spec/thinking_sphinx/real_time/transcribe_instance_spec.rb +35 -0
- data/spec/thinking_sphinx/real_time/transcriber_spec.rb +101 -0
- data/spec/thinking_sphinx/real_time/translator_spec.rb +17 -0
- data/spec/thinking_sphinx/scopes_spec.rb +2 -0
- data/spec/thinking_sphinx/search/glaze_spec.rb +2 -0
- data/spec/thinking_sphinx/search/query_spec.rb +2 -0
- data/spec/thinking_sphinx/search_spec.rb +2 -0
- data/spec/thinking_sphinx/wildcard_spec.rb +2 -0
- data/spec/thinking_sphinx_spec.rb +2 -0
- data/thinking-sphinx.gemspec +7 -5
- metadata +62 -25
- data/HISTORY +0 -326
- data/bin/literals +0 -9
- data/lib/thinking_sphinx/commands/index.rb +0 -11
- data/lib/thinking_sphinx/controller.rb +0 -12
- data/lib/thinking_sphinx/middlewares/attribute_typer.rb +0 -48
- data/lib/thinking_sphinx/middlewares/utf8.rb +0 -27
- data/lib/thinking_sphinx/sphinxql.rb +0 -23
- data/spec/thinking_sphinx/commands/index_spec.rb +0 -26
- data/spec/thinking_sphinx/middlewares/attribute_typer_spec.rb +0 -42
data/HISTORY
DELETED
@@ -1,326 +0,0 @@
|
|
1
|
-
2017-09-29: 3.4.2
|
2
|
-
* [FIX] Real-time callback syntax for namespaced models accepts a string (as documented).
|
3
|
-
* [CHANGE] Allow use of deletion callbacks for rollback events.
|
4
|
-
* [CHANGE] Remove extra deletion code in the Populator - it's also being done by the real-time rake interface.
|
5
|
-
* [FIX] Fix up logged warnings.
|
6
|
-
* [FIX] Add missing search options to known values to avoid incorrect warnings.
|
7
|
-
|
8
|
-
2017-08-29: 3.4.1
|
9
|
-
* [CHANGE] Treat "Lost connection to MySQL server" as a connection error (Manuel Schnitzer).
|
10
|
-
* [FIX] Index normalisation will now work even when index model tables don't exist.
|
11
|
-
|
12
|
-
2017-08-28: 3.4.0
|
13
|
-
* [CHANGE] Delta callback logic now prioritises checking for high level settings rather than model changes.
|
14
|
-
* [FIX] Index normalisation now occurs consistently, and removes unneccesary sphinx_internal_class_name fields from real-time indices.
|
15
|
-
* [FEATURE] Rake tasks are now unified, so the original tasks will operate on real-time indices as well.
|
16
|
-
* [FEATURE] Output warnings when unknown options are used in search calls.
|
17
|
-
* [CHANGE] Allow for unsaved records when calculating document ids (and return nil).
|
18
|
-
* [CHANGE] Display SphinxQL deletion statements in the log.
|
19
|
-
* [CHANGE] Add support for Ruby's frozen string literals feature.
|
20
|
-
* [FIX] Fix Sphinx connections in JRuby.
|
21
|
-
* [FIX] Fix long SphinxQL query handling in JRuby.
|
22
|
-
* [FEATURE] Allow generation of a single real-time index (Tim Brown).
|
23
|
-
* [FIX] Always close the SphinxQL connection if Innertube's asking (@cmaion).
|
24
|
-
* [CHANGE] Use saved_changes if it's available (in Rails 5.1+).
|
25
|
-
* [FEATURE] Automatically use UTF8 in Sphinx for encodings that are extensions of UTF8.
|
26
|
-
* [FIX] Get bigint primary keys working in Rails 5.1.
|
27
|
-
* [CHANGE] Set a default connection timeout of 5 seconds.
|
28
|
-
* [FIX] Fix handling of attached starts of Sphinx (via Henne Vogelsang).
|
29
|
-
* [FIX] Fix multi-field conditions.
|
30
|
-
* [FEATURE] Basic type checking for attribute filters.
|
31
|
-
* [CHANGE] Don't search multi-table inheritance ancestors.
|
32
|
-
* [FIX] Use the base class of STI models for polymorphic join generation (via Andrés Cirugeda).
|
33
|
-
* [CHANGE] Handle non-computable queries as parse errors.
|
34
|
-
* [FIX] Ensure ts:index now respects rake silent/quiet flags.
|
35
|
-
|
36
|
-
2016-12-13: 3.3.0
|
37
|
-
* [FEATURE] Real-time callbacks can now be used with after_commit hooks if that's preferred over after_save.
|
38
|
-
* [CHANGE] Only toggle the delta value if the record has changed or is new (rather than on every single save call).
|
39
|
-
* [CHANGE] Delta indexing is now quiet by default (rather than verbose).
|
40
|
-
* [FIX] Explicit source method in the SQLQuery Builder instead of relying on method missing, thus avoiding any global methods named 'source' (Asaf Bartov).
|
41
|
-
* [CHANGE] Use Riddle's reworked command interface for interacting with Sphinx's command-line tools.
|
42
|
-
* [CHANGE] Respect Rake's quiet and silent flags for the Thinking Sphinx rake tasks.
|
43
|
-
* [CHANGE] ts:start and ts:stop tasks default to verbose.
|
44
|
-
* [FIX] Load indices before deleting index files, to ensure the files are actually found and deleted.
|
45
|
-
* [FIX] Avoid loading ActiveRecord earlier than necessary. This avoids loading Rails out of order, which caused problems with Rails 5.
|
46
|
-
* [FEATURE] Allow for custom batch sizes when populating real-time indices.
|
47
|
-
* [FIX] Handle queries that are too long for Sphinx.
|
48
|
-
* [FIX] Improve Rails 5 / JRuby support.
|
49
|
-
* [CHANGE] Sort engine paths for loading indices to ensure they're consistent.
|
50
|
-
* [CHANGE] Custom exception class for invalid database adapters.
|
51
|
-
* [FIX] Fixed handling of multiple field tokens in wildcarding logic.
|
52
|
-
* [CHANGE] Memoize the default primary keys per context.
|
53
|
-
* [FIX] Ensure custom primary key columns are handled consistently (Julio Monteiro).
|
54
|
-
|
55
|
-
2016-05-13: 3.2.0
|
56
|
-
* [FIX] Ensure SQL table aliases are reliable for SQL-backed index queries.
|
57
|
-
* [FEATURE] Add JSON attribute support for real-time indices.
|
58
|
-
* [FEATURE] Add ability to disable *all* Sphinx-related callbacks via ThinkingSphinx::Callbacks.suspend! and ThinkingSphinx::Callbacks.resume!. Particularly useful for unit tests.
|
59
|
-
* [FEATURE] Add native OutOfBoundsError for search queries outside the pagination bounds.
|
60
|
-
* [CHANGE] Improved error messages for duplicate property names and missing columns.
|
61
|
-
* [FIX] Fixed mysql2 compatibility for memory references (Roman Usherenko).
|
62
|
-
* [FIX] Fixed JRuby compatibility with camelCase method names (Brandon Dewitt).
|
63
|
-
* [FEATURE] Support MySQL SSL options on a per-index level (@arrtchiu).
|
64
|
-
* [CHANGE] Don't populate search results when requesting just the count values (Andrew Roth).
|
65
|
-
* [CHANGE] Reset delta column before core indexing begins (reverting behaviour introduced in 3.1.0). See issue #958 for further discussion.
|
66
|
-
* [FEATURE] Allow for different indexing strategies (e.g. all at once, or one by one).
|
67
|
-
* [FIX] Fix stale id handling for multiple search contexts (Jonathan del Strother).
|
68
|
-
* [CHANGE] Use Sphinx's bulk insert ability (Chance Downs).
|
69
|
-
* [CHANGE] Reduce memory/object usage for model references (Jonathan del Strother).
|
70
|
-
* [CHANGE] Disable deletion callbacks when real-time indices are in place and all other real-time callbacks are disabled.
|
71
|
-
* [FIX] Handle quoting of namespaced tables (Roman Usherenko).
|
72
|
-
* [FIX] Make preload_indices thread-safe.
|
73
|
-
* [FIX] Improved handling of marshalled/demarshalled search results.
|
74
|
-
* [FEATURE] Allow rand_seed as a select option (Mattia Gheda).
|
75
|
-
* [FEATURE] Add primary_key option for index definitions (Nathaneal Gray).
|
76
|
-
* [FEATURE] Add ability to start searchd in the foreground (Andrey Novikov).
|
77
|
-
* [CHANGE] Only use ERB to parse the YAML file if ERB is loaded.
|
78
|
-
|
79
|
-
2015-06-01: 3.1.4
|
80
|
-
* [FIX] Kaminari expects prev_page to be available.
|
81
|
-
* [CHANGE] Add a contributor code of conduct.
|
82
|
-
* [FEATURE] Add JSON as a Sphinx type for attributes (Daniel Vandersluis).
|
83
|
-
* [CHANGE] Remove polymorphic association and HABTM query support (when related to Thinking Sphinx) when ActiveRecord 3.2 is involved.
|
84
|
-
* [FIX] Don't try to delete guard files if they don't exist (@exAspArk).
|
85
|
-
* [FEATURE] minimal_group_by? can now be set in config/thinking_sphinx.yml to automatically apply to all index definitions.
|
86
|
-
* [FIX] Handle database settings reliably, now that ActiveRecord 4.2 uses strings all the time.
|
87
|
-
* [FIX] More consistent with escaping table names.
|
88
|
-
* [CHANGE] Remove default charset_type - no longer required for Sphinx 2.2.
|
89
|
-
* [FIX] Bug fix for association creation (with polymophic fields/attributes).
|
90
|
-
* [CHANGE] Removing sql_query_info setting, as it's no longer used by Sphinx (nor is it actually used by Thinking Sphinx).
|
91
|
-
|
92
|
-
2015-01-21: 3.1.3
|
93
|
-
* [CHANGE] Log excerpt SphinxQL queries just like the search queries.
|
94
|
-
* [CHANGE] Load Railtie if Rails::Railtie is defined, instead of just Rails (Andrew Cone).
|
95
|
-
* [CHANGE] Convert raw Sphinx results to an array when querying (Bryan Ricker).
|
96
|
-
* [FIX] Generate de-polymorphised associations properly for Rails 4.2
|
97
|
-
* [FIX] Use reflect_on_association instead of reflections, to stick to the public ActiveRecord::Base API.
|
98
|
-
* [FIX] Don't load ActiveRecord early - fixes a warning in Rails 4.2.
|
99
|
-
* [FEATURE] Allow for custom offset references with the :offset_as option - thus one model across many schemas with Apartment can be treated differently.
|
100
|
-
* [FEATURE] Allow for custom IndexSet classes.
|
101
|
-
* [FIX] Don't double-up on STI filtering, already handled by Rails.
|
102
|
-
* [CHANGE] Add bigint support for real-time indices, and use bigints for the sphinx_internal_id attribute (mapped to model primary keys) (Chance Downs).
|
103
|
-
|
104
|
-
2014-11-04: 3.1.2
|
105
|
-
* [CHANGE] regenerate task now only deletes index files for real-time indices.
|
106
|
-
* [CHANGE] Raise an exception when a populated search query is modified (as it can't be requeried).
|
107
|
-
* [FEATURE] Allow for custom paths for index files using :path option in the ThinkingSphinx::Index.define call.
|
108
|
-
* [FIX] Ensure indexing guard files are removed when an exception is raised (Bobby Uhlenbrock).
|
109
|
-
* [FIX] Don't update real-time indices for objects that are not persisted (Chance Downs).
|
110
|
-
* [FEATURE] Allow the binlog path to be an empty string (Bobby Uhlenbrock).
|
111
|
-
* [FIX] Use STI base class for polymorphic association replacements.
|
112
|
-
* [FIX] Convert database setting keys to symbols for consistency with Rails (@dimko).
|
113
|
-
* [FIX] Field weights and other search options are now respected from set_property.
|
114
|
-
* [CHANGE] Log indices that aren't processed due to guard files existing.
|
115
|
-
* [FEATURE] Add status task to report on whether Sphinx is running.
|
116
|
-
* [FIX] Models with more than one index have correct facet counts (using Sphinx 2.1.x or newer).
|
117
|
-
* [FEATURE] Real-time index callbacks can take a block for dynamic scoping.
|
118
|
-
* [FIX] Some association fixes for Rails 4.1.
|
119
|
-
* [CHANGE] Paginate records by 1000 results at a time when flagging as deleted.
|
120
|
-
* [CHANGE] Default the Capistrano TS Rails environment to use rails_env, and then fall back to stage.
|
121
|
-
* [CHANGE] rebuild task uses clear between stopping the daemon and indexing.
|
122
|
-
* [FIX] Clear connections when raising connection errors.
|
123
|
-
* [FEATURE] Allow casting of document ids pre-offset as bigints (via big_documents_id option).
|
124
|
-
|
125
|
-
2014-04-22: 3.1.1
|
126
|
-
* [CHANGE] Include full statements when query execution errors are raised (uglier, but more useful when debugging).
|
127
|
-
* [FEATURE] Allow for common section in generated Sphinx configuration files for Sphinx 2.2.x (disabled by default, though) (Trevor Smith).
|
128
|
-
* [FEATURE] Basic support for HABTM associations and MVAs with query/ranged-query sources.
|
129
|
-
* [CHANGE] Connection error messages now mention Sphinx, instead of just MySQL.
|
130
|
-
* [FIX] Don't apply attribute-only updates to real-time indices.
|
131
|
-
* [FIX] Don't instantiate blank strings (via inheritance type columns) as constants.
|
132
|
-
* [FIX] Don't presume all indices for a model have delta pairs, even if one does.
|
133
|
-
* [CHANGE] Raise an exception when a referenced column does not exist.
|
134
|
-
* [CHANGE] Capistrano tasks use thinking_sphinx_rails_env (defaults to standard environment) (Robert Coleman).
|
135
|
-
* [FIX] Always use connection options for connection information.
|
136
|
-
* [FIX] respond_to? works reliably with masks (Konstantin Burnaev).
|
137
|
-
* [FEATURE] Real-time indices callbacks can be disabled (useful for unit tests).
|
138
|
-
* [FEATURE] ThinkingSphinx::Test has a clear method and no-index option for starting for real-time setups.
|
139
|
-
* [FIX] Avoid null values in MVA query/ranged-query sources.
|
140
|
-
* [CHANGE] Alias group and count columns for easier referencing in other clauses.
|
141
|
-
* [FEATURE] Allow disabling of distributed indices.
|
142
|
-
* [FIX] Don't send unicode null characters to real-time Sphinx indices.
|
143
|
-
* [FIX] :populate option is now respected for single-model searches.
|
144
|
-
* [FIX] :thinking_sphinx_roles is now used consistently in Capistrano v3 tasks.
|
145
|
-
* [CHANGE] Log real-time index updates (Demian Ferreiro).
|
146
|
-
* [FIX] Only expand log directory if it exists.
|
147
|
-
* [FIX] Handle JDBC connection errors appropriately (Adam Hutchison).
|
148
|
-
* [FIX] Fixing wildcarding of Unicode strings.
|
149
|
-
* [CHANGE] All indices now respond to a public attributes method.
|
150
|
-
* [FIX] Improved handling of association searches with real-time indices, including via has_many :though associations (Rob Anderton).
|
151
|
-
|
152
|
-
2014-01-11: 3.1.0
|
153
|
-
* [CHANGE] Updating Riddle requirement to >= 1.5.10.
|
154
|
-
* [CHANGE] Extracting join generation into its own gem: Joiner.
|
155
|
-
* [FEATURE] Support for Capistrano v3 (Alexander Tipugin).
|
156
|
-
* [FEATURE] JRuby support (with Sphinx 2.1 or newer).
|
157
|
-
* [CHANGE] Geodist calculation is now prepended to the SELECT statement, so it can be referred to by other dynamic attributes.
|
158
|
-
* [FIX] Indices will be detected in Rails engines upon configuration.
|
159
|
-
* [FEATURE] Support for Sphinx 2.2.x's HAVING and GROUP N BY SphinxQL options.
|
160
|
-
* [FEATURE] Adding max_predicted_time search option (Sphinx 2.2.x).
|
161
|
-
* [FEATURE] Wildcard/starring can be applied directly to strings using ThinkingSphinx::Query.wildcard('pancakes'), and escaping via ThinkingSphinx::Query.escape('pancakes').
|
162
|
-
* [CHANGE] Auto-wildcard/starring (via :star => true) now treats escaped characters as word separators.
|
163
|
-
* [FEATURE] Capistrano recipe now includes tasks for realtime indices.
|
164
|
-
* [CHANGE] Capistrano recipe no longer automatically adds thinking_sphinx:index and thinking_sphinx:start to be run after deploy:cold.
|
165
|
-
* [CHANGE] UTF-8 forced encoding is now disabled by default (in line with Sphinx 2.1.x).
|
166
|
-
* [CHANGE] Sphinx functions are now the default, instead of the legacy special variables (in line with Sphinx 2.1.x).
|
167
|
-
* [CHANGE] Rails 3.1 is no longer supported.
|
168
|
-
* [CHANGE] MRI 1.9.2 is no longer supported.
|
169
|
-
* [FIX] Destroy callbacks are ignored for non-persisted objects.
|
170
|
-
* [FEATURE] :group option within :sql options in a search call is passed through to the underlying ActiveRecord relation (Siarhei Hanchuk).
|
171
|
-
* [FIX] Blank STI values are converted to the parent class in Sphinx index data (Jonathan Greenberg).
|
172
|
-
* [CHANGE] Insist on at least * for SphinxQL SELECT statements.
|
173
|
-
* [FIX] Track indices on parent STI models when marking documents as deleted.
|
174
|
-
* [FEATURE] Persistent connections can be disabled if you wish.
|
175
|
-
* [FIX] Separate per_page/max_matches values are respected in facet searches (Timo Virkkala).
|
176
|
-
* [FIX] Don't split function calls when casting timestamps (Timo Virkalla).
|
177
|
-
* [FEATURE] Track what's being indexed, and don't double-up while indexing is running. Single indices (e.g. deltas) can be processed while a full index is happening, though.
|
178
|
-
* [FEATURE] Pass through :delta_options to delta processors (Timo Virkalla).
|
179
|
-
* [FEATURE] All delta records can have their core pairs marked as deleted after a suspended delta (use ThinkingSphinx::Deltas.suspend_and_update instead of ThinkingSphinx::Deltas.suspend).
|
180
|
-
* [CHANGE] Reset the delta column to true after core indexing is completed, instead of before, and don't filter out delta records from the core source.
|
181
|
-
* [FEATURE] Set custom database settings within the index definition, using the set_database method. A more sane approach with multiple databases.
|
182
|
-
* [CHANGE] Provide a distributed index per model that covers both core and delta indices.
|
183
|
-
|
184
|
-
2013-10-20: 3.0.6
|
185
|
-
* [FEATURE] Raise an error if no indices match the search criteria (Bryan Ricker).
|
186
|
-
* [FEATURE] skip_time_zone setting is now available per environment via config/thinking_sphinx.yml to avoid the sql_query_pre time zone command.
|
187
|
-
* [CHANGE] Updating Riddle dependency to be >= 1.5.9.
|
188
|
-
* [FEATURE] Added new search options in Sphinx 2.1.x.
|
189
|
-
* [FEATURE] Added ability to disable UTF-8 forced encoding, now that Sphinx 2.1.2 returns UTF-8 strings by default. This will be disabled by default in Thinking Sphinx 3.1.0.
|
190
|
-
* [FEATURE] Added ability to switch between Sphinx special variables and the equivalent functions. Sphinx 2.1.x requires the latter, and that behaviour will become the default in Sphinx 3.1.0.
|
191
|
-
* [FIX] Cast every column to a timestamp for timestamp attributes with multiple columns.
|
192
|
-
* [CHANGE] Separated directory preparation from data generation for real-time index (re)generation tasks.
|
193
|
-
* [CHANGE] Have tests index UTF-8 characters where appropriate (Pedro Cunha).
|
194
|
-
* [FIX] Don't use Sphinx ordering if SQL order option is supplied to a search.
|
195
|
-
* [CHANGE] Always use DISTINCT in group concatenation.
|
196
|
-
* [CHANGE] Sphinx connection failures now have their own class, ThinkingSphinx::ConnectionError, instead of the standard Mysql2::Error.
|
197
|
-
* [FIX] Custom middleware and mask options now function correctly with model-scoped searches.
|
198
|
-
* [FEATURE] Adding search_for_ids on scoped search calls.
|
199
|
-
* [CHANGE] Don't clobber custom :select options for facet searches (Timo Virkkala).
|
200
|
-
* [CHANGE] Automatically load Riddle's Sphinx 2.0.5 compatability changes.
|
201
|
-
* [FIX] Suspended deltas now no longer update core indices as well.
|
202
|
-
* [CHANGE] Realtime fields and attributes now accept symbols as well as column objects, and fields can be sortable (with a _sort prefix for the matching attribute).
|
203
|
-
* [FEATURE] MySQL users can enable a minimal GROUP BY statement, to speed up queries: set_property :minimal_group_by? => true.
|
204
|
-
* [CHANGE] Insist on the log directory existing, to ensure correct behaviour for symlinked paths. (Michael Pearson).
|
205
|
-
* [FIX] Use alphabetical ordering for index paths consistently (@grin).
|
206
|
-
* [FIX] Convert very small floats to fixed format for geo-searches.
|
207
|
-
* [CHANGE] Rake's silent mode is respected for indexing (@endoscient).
|
208
|
-
|
209
|
-
2013-08-26: 3.0.5
|
210
|
-
* [CHANGE] Updating Riddle dependency to be >= 1.5.8.
|
211
|
-
* [FEATURE] Allow scoping of real-time index models.
|
212
|
-
* [CHANGE] Real-time index population presentation and logic are now separated.
|
213
|
-
* [CHANGE] Using the connection pool for update callbacks, excerpts, deletions.
|
214
|
-
* [FIX] Respect existing sql_query_range/sql_query_info settings.
|
215
|
-
* [CHANGE] Don't add the sphinx_internal_class_name unless STI models are indexed.
|
216
|
-
* [FIX] Don't add select clauses or joins to sql_query if they're for query/ranged-query properties.
|
217
|
-
* [CHANGE] Use Mysql2's reconnect option and have it turned on by default.
|
218
|
-
* [FIX] Set database timezones as part of the indexing process.
|
219
|
-
* [CHANGE] Improved auto-starring with escaped characters.
|
220
|
-
* [FIX] Chaining scopes with just options works again.
|
221
|
-
|
222
|
-
2013-07-09: 3.0.4
|
223
|
-
* [CHANGE] Updating Riddle dependency to be >= 1.5.7.
|
224
|
-
* [FEATURE] ts:regenerate rake task for rebuilding Sphinx when realtime indices are involved.
|
225
|
-
* [FEATURE] ts:clear task removes all Sphinx index and binlog files.
|
226
|
-
* [CHANGE] Glaze now responds to respond_to? (@groe).
|
227
|
-
* [FEATURE] Facet search calls now respect the limit option (which otherwise defaults to max_matches) (Demian Ferreiro).
|
228
|
-
* [FEATURE] Excerpts words can be overwritten with the words option (@groe).
|
229
|
-
* [FIX] Empty queries with the star option set to true are handled gracefully.
|
230
|
-
* [CHANGE] Deleted ActiveRecord objects are deleted in realtime indices as well.
|
231
|
-
* [CHANGE] Realtime callbacks are no longer automatically added, but they're now more flexible (for association situations).
|
232
|
-
* [CHANGE] Cleaning and refactoring so Code Climate ranks this as A-level code (Philip Arndt, Shevaun Coker, Garrett Heinlen).
|
233
|
-
* [FIX] Excerpts are now wildcard-friendly.
|
234
|
-
* [FIX] Facet searches now use max_matches value (with a default of 1000) to ensure as many results as possible are returned.
|
235
|
-
* [CHANGE] Exceptions raised when communicating with Sphinx are now mentioned in the logs when queries are retried (instead of STDOUT).
|
236
|
-
* [CHANGE] Excerpts now use just the query and standard conditions, instead of parsing Sphinx's keyword metadata (which had model names in it).
|
237
|
-
* [FIX] The settings cache is now cleared when the configuration singleton is reset (Pedro Cunha).
|
238
|
-
* [FEATURE] The :facets option can be used in facet searches to limit which facets are queried.
|
239
|
-
* [FIX] Escaped @'s in queries are considered part of each word, instead of word separators.
|
240
|
-
* [FIX] Internal class name conditions are ignored with auto-starred queries.
|
241
|
-
* [FEATURE] A separate role can be set for Sphinx actions with Capistrano (Andrey Chernih).
|
242
|
-
* [FIX] RDoc doesn't like constant hierarchies split over multiple lines.
|
243
|
-
* [CHANGE] Get database connection details from ActiveRecord::Base, not each model, as this is where changes are reflected.
|
244
|
-
* [CHANGE] Default Sphinx scopes are applied to new facet searches.
|
245
|
-
* [FEATURE] Facet searches can now be called from Sphinx scopes.
|
246
|
-
|
247
|
-
2013-05-07: 3.0.3
|
248
|
-
* [CHANGE] Updating Riddle dependency to be >= 1.5.6
|
249
|
-
* [FEATURE] INDEX_ONLY environment flag is passed through when invoked through Capistrano (Demian Ferreiro).
|
250
|
-
* [FEATURE] use_64_bit option returns as cast_to_timestamp instead (Denis Abushaev).
|
251
|
-
* [FIX] Update to association handling for Rails/ActiveRecord 4.0.0.rc1.
|
252
|
-
* [CHANGE] Delta jobs get common classes to allow third-party delta behaviours to leverage Thinking Sphinx.
|
253
|
-
* [FEATURE] Collection of hooks (lambdas) that get called before indexing. Useful for delta libraries.
|
254
|
-
* [FIX] Cast and concatenate multi-column attributes correctly.
|
255
|
-
* [FIX] Don't load fields or attributes when building a real-time index - otherwise the index is translated before it has a chance to be built.
|
256
|
-
* [CHANGE] Raise ThinkingSphinx::MixedScopesError if a search is called through an ActiveRecord scope.
|
257
|
-
* [FIX] Default search panes are cloned for each search.
|
258
|
-
* [FIX] Index-level settings (via set_property) are now applied consistently after global settings (in thinking_sphinx.yml).
|
259
|
-
* [FIX] All string values returned from Sphinx are now properly converted to UTF8.
|
260
|
-
* [CHANGE] GroupEnumeratorsMask is now a default mask, as masks need to be in place before search results are populated/the middleware is called (and previously it was being added within a middleware call).
|
261
|
-
* [FIX] The default search masks are now cloned for each search, instead of referring to the constant (and potentially modifying it often).
|
262
|
-
* [CHANGE] The current_page method is now a part of ThinkingSphinx::Search, as it is used when populating results.
|
263
|
-
|
264
|
-
2013-03-23: 3.0.2
|
265
|
-
* [CHANGE] per_page now accepts an optional paging limit, to match WillPaginate's behaviour. If none is supplied, it just returns the page size.
|
266
|
-
* [FEATURE] Ruby 2.0 support.
|
267
|
-
* [FEATURE] Rails 4.0.0 beta1 support.
|
268
|
-
* [FIX] :utf8? option within index definitions is now supported, and defaults to true if the database configuration's encoding is set to 'utf8'.
|
269
|
-
* [FIX] indices_location and configuration_file values in thinking_sphinx.yml will be applied to the configuration.
|
270
|
-
* [CHANGE] Strings and regular expressions in ThinkingSphinx::Search::Query are now treated as UTF-8.
|
271
|
-
* [FIX] Primary keys that are not 'id' now work correctly.
|
272
|
-
* [CHANGE] Setting a custom framework will rebuild the core configuration around its provided settings (path and environment).
|
273
|
-
* [CHANGE] Search masks don't rely on respond_to?, and so Object/Kernel methods are passed through to the underlying array instead.
|
274
|
-
* [FIX] Search options specified in index definitions and thinking_sphinx.yml are now used in search requests (eg: max_matches, field_weights).
|
275
|
-
* [FEATURE] Indexes defined in app/indices in engines are now loaded (Antonio Tapiador del Dujo).
|
276
|
-
* [FIX] Custom association conditions are no longer presumed to be an array.
|
277
|
-
* [CHANGE] Empty search conditions are now ignored, instead of being appended with no value (Nicholas Klick).
|
278
|
-
* [CHANGE] Custom conditions are no longer added to the sql_query_range value, as they may involve associations.
|
279
|
-
* [FIX] Capistrano tasks use the correct ts rake task prefix (David Celis).
|
280
|
-
* [FEATURE] Query errors are classified as such, instead of getting the base SphinxError.
|
281
|
-
|
282
|
-
2013-02-04: 3.0.1
|
283
|
-
* [FEATURE] Provide Capistrano deployment tasks (David Celis).
|
284
|
-
* [FEATURE] Allow specifying of Sphinx version. Is only useful for Flying Sphinx purposes at this point - has no impact on Riddle or Sphinx.
|
285
|
-
* [FEATURE] Support new JDBC configuration style (when JDBC can be used) (Kyle Stevens).
|
286
|
-
* [FIX] Referring to associations via polymorphic associations in an index definition now works.
|
287
|
-
* [FEATURE] Mysql2::Errors are wrapped as ThinkingSphinx::SphinxErrors, with subclasses of SyntaxError and ParseError used appropriately. Syntax and parse errors do not prompt a retry on a new connection.
|
288
|
-
* [CHANGE] Use connection pool for search queries. If a query fails, it will be retried on a new connection before raising if necessary.
|
289
|
-
* [CHANGE] Glaze always passes methods through to the underlying ActiveRecord::Base object if they don't exist on any of the panes.
|
290
|
-
* [FIX] Don't override foreign keys for polymorphic association replacements.
|
291
|
-
* [FIX] Quote namespaced model names in class field condition.
|
292
|
-
* [FEATURE] Polymorphic associations can be used within index definitions when the appropriate classes are set out.
|
293
|
-
* [FEATURE] Allow custom strings for SQL joins in index definitions.
|
294
|
-
* [FIX] New lines are maintained and escaped in custom source queries.
|
295
|
-
* [FIX] Subclasses of indexed models fire delta callbacks properly.
|
296
|
-
* [FIX] Thinking Sphinx can be loaded via thinking/sphinx, to satisfy Bundler.
|
297
|
-
* [FEATURE] indexer and searchd settings are added to the appropriate objects from config/thinking_sphinx.yml (@ygelfand).
|
298
|
-
* [FIX] New lines are maintained and escaped in sql_query values.
|
299
|
-
|
300
|
-
2013-01-02: 3.0.0
|
301
|
-
* [CHANGE] Updating Riddle dependency to 1.5.4.
|
302
|
-
* [FIX] Respect source options as well as underlying settings via the set_property method in index definitions.
|
303
|
-
* [FIX] Load real-time index definitions when listing fields, attributes, and/or conditions.
|
304
|
-
* [CHANGE] UTF-8 is now the default charset again (as it was in earlier Thinking Sphinx versions).
|
305
|
-
* [FEATURE] Initial realtime index support, including the ts:generate task for building index datasets. Sphinx 2.0.6 is required.
|
306
|
-
* [CHANGE] Removing ts:version rake task.
|
307
|
-
* [FEATURE] SphinxQL connection pooling via the Innertube gem.
|
308
|
-
|
309
|
-
2012-12-22: 3.0.0.rc
|
310
|
-
* [FEATURE] Source type support (query and ranged query) for both attributes and fields. Custom SQL strings can be supplied as well.
|
311
|
-
* [FEATURE] Wordcount attributes and fields now supported.
|
312
|
-
* [FEATURE] Support for Sinatra and other non-Rails frameworks.
|
313
|
-
* [FEATURE] A sphinx scope can be defined as the default.
|
314
|
-
* [FEATURE] An index can have multiple sources, by using define_source within the index definition.
|
315
|
-
* [FEATURE] sanitize_sql is available within an index definition.
|
316
|
-
* [FEATURE] Providing :prefixes => true or :infixes => true as an option when declaring a field means just the noted fields have infixes/prefixes applied.
|
317
|
-
* [FEATURE] ThinkingSphinx::Search#query_time returns the time Sphinx took to make the query.
|
318
|
-
* [FEATURE] Namespaced model support.
|
319
|
-
* [FEATURE] Default settings for index definition arguments can be set in config/thinking_sphinx.yml.
|
320
|
-
* [FIX] Correctly escape nulls in inheritance column (Darcy Laycock).
|
321
|
-
* [FIX] Use ThinkingSphinx::Configuration#render_to_file instead of ThinkingSphinx::Configuration#build in test helpers (Darcy Laycock).
|
322
|
-
* [FIX] Suppressing delta output in test helpers now works (Darcy Laycock).
|
323
|
-
* [FEATURE] A custom Riddle/Sphinx controller can be supplied. Useful for Flying Sphinx to have an API layer over Sphinx commands, without needing custom gems for different Thinking Sphinx/Flying Sphinx combinations.
|
324
|
-
|
325
|
-
2012-10-06: 3.0.0.pre
|
326
|
-
* First pre-release. Not quite feature complete, but the important stuff is certainly covered. See the README for more the finer details.
|
data/bin/literals
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
if (ruby -e "exit RUBY_VERSION.to_f >= 2.4")
|
2
|
-
then
|
3
|
-
echo "Automatic frozen string literals are supported"
|
4
|
-
gem install pragmater -v 4.0.0
|
5
|
-
pragmater --add lib --comments "# frozen_string_literal: true" --whitelist "**/*.rb"
|
6
|
-
pragmater --add spec --comments "# frozen_string_literal: true" --whitelist "**/*.rb"
|
7
|
-
else
|
8
|
-
echo "Automatic frozen string literals are not supported."
|
9
|
-
fi
|
@@ -1,12 +0,0 @@
|
|
1
|
-
class ThinkingSphinx::Controller < Riddle::Controller
|
2
|
-
def index(*indices)
|
3
|
-
configuration = ThinkingSphinx::Configuration.instance
|
4
|
-
options = indices.extract_options!
|
5
|
-
|
6
|
-
configuration.indexing_strategy.call(indices) do |index_names|
|
7
|
-
ThinkingSphinx::Guard::Files.call(index_names) do |names|
|
8
|
-
super(*(names + [options]))
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
class ThinkingSphinx::Middlewares::AttributeTyper <
|
2
|
-
ThinkingSphinx::Middlewares::Middleware
|
3
|
-
|
4
|
-
def call(contexts)
|
5
|
-
contexts.each do |context|
|
6
|
-
deprecate_filters_in context.search.options[:with]
|
7
|
-
deprecate_filters_in context.search.options[:without]
|
8
|
-
deprecate_filters_in context.search.options[:with_all]
|
9
|
-
deprecate_filters_in context.search.options[:without_all]
|
10
|
-
end
|
11
|
-
|
12
|
-
app.call contexts
|
13
|
-
end
|
14
|
-
|
15
|
-
private
|
16
|
-
|
17
|
-
def attributes
|
18
|
-
@attributes ||= ThinkingSphinx::AttributeTypes.call
|
19
|
-
end
|
20
|
-
|
21
|
-
def casted_value_for(type, value)
|
22
|
-
case type
|
23
|
-
when :uint, :bigint, :timestamp, :bool
|
24
|
-
value.to_i
|
25
|
-
when :float
|
26
|
-
value.to_f
|
27
|
-
else
|
28
|
-
value
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
def deprecate_filters_in(filters)
|
33
|
-
return if filters.nil?
|
34
|
-
|
35
|
-
filters.each do |key, value|
|
36
|
-
known_types = attributes[key.to_s] || [:string]
|
37
|
-
|
38
|
-
next unless value.is_a?(String) && !known_types.include?(:string)
|
39
|
-
|
40
|
-
ActiveSupport::Deprecation.warn(<<-MSG.squish, caller(11))
|
41
|
-
You are filtering on a non-string attribute #{key} with a string value (#{value.inspect}).
|
42
|
-
Thinking Sphinx will quote string values by default in upcoming releases (which will cause query syntax errors on non-string attributes), so please cast these values to their appropriate types.
|
43
|
-
MSG
|
44
|
-
|
45
|
-
filters[key] = casted_value_for known_types.first, value
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
class ThinkingSphinx::Middlewares::UTF8 <
|
2
|
-
ThinkingSphinx::Middlewares::Middleware
|
3
|
-
|
4
|
-
def call(contexts)
|
5
|
-
contexts.each do |context|
|
6
|
-
context[:results].each { |row| update_row row }
|
7
|
-
update_row context[:meta]
|
8
|
-
end unless encoded?
|
9
|
-
|
10
|
-
app.call contexts
|
11
|
-
end
|
12
|
-
|
13
|
-
private
|
14
|
-
|
15
|
-
def encoded?
|
16
|
-
ThinkingSphinx::Configuration.instance.settings['utf8'].nil? ||
|
17
|
-
ThinkingSphinx::Configuration.instance.settings['utf8']
|
18
|
-
end
|
19
|
-
|
20
|
-
def update_row(row)
|
21
|
-
row.each do |key, value|
|
22
|
-
next unless value.is_a?(String)
|
23
|
-
|
24
|
-
row[key] = ThinkingSphinx::UTF8.encode value
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module ThinkingSphinx::SphinxQL
|
2
|
-
mattr_accessor :weight, :group_by, :count
|
3
|
-
|
4
|
-
def self.functions!
|
5
|
-
self.weight = {:select => 'weight()', :column => 'weight()'}
|
6
|
-
self.group_by = {
|
7
|
-
:select => 'groupby() AS sphinx_internal_group',
|
8
|
-
:column => 'sphinx_internal_group'
|
9
|
-
}
|
10
|
-
self.count = {
|
11
|
-
:select => 'id AS sphinx_document_id, count(DISTINCT sphinx_document_id) AS sphinx_internal_count',
|
12
|
-
:column => 'sphinx_internal_count'
|
13
|
-
}
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.variables!
|
17
|
-
self.weight = {:select => '@weight', :column => '@weight'}
|
18
|
-
self.group_by = {:select => '@groupby', :column => '@groupby'}
|
19
|
-
self.count = {:select => '@count', :column => '@count'}
|
20
|
-
end
|
21
|
-
|
22
|
-
self.functions!
|
23
|
-
end
|