<commit_before>= ThinkingTank

See documentation in: http://indextank.com/documentation/ruby-client


ActiveRecord extension that allows to define models that should be indexed 
in an existing IndexTank index. It supports a very similar syntax to 
ThinkingSphinx allowing to easily port an existing project.

Every indexable model should include a define_index block in its class 
definition, see the example for more details. This block supports the indexes
:method and receives a field name.

Model classes now have a search method that receives one or more string 
arguments with query strings (according to the query specifications) and 
supports the :conditions argument as a hash from field name to query string. 

In order for this extension to work you need to define a config/indextank.yml
in your application with the api_key and index_name settings 
for each environment (similar to config/database.yml).

Indexed fields in ActiveRecord are prepended an underscore when sent to 
IndexTank so if you plan to write query strings that use your field names you 
will have to prepend the underscore to the field names.

== Rails 2
In order for the ThinkingTank to be available you need to add:

    require 'thinkingtank'
    require 'thinkingtank/tasks'

to your Rakefile.

== Rails 3<commit_msg>More README clean up<commit_after>= ThinkingTank

See documentation in: http://indextank.com/documentation/ruby-client


ActiveRecord extension that allows to define models that should be indexed 
in an existing IndexTank index. It supports a very similar syntax to 
ThinkingSphinx allowing to easily port an existing project.

Every indexable model should include a define_index block in its class 
definition. This block supports the indexes :method and receives a field name.

Model classes now have a search method that receives one or more string 
arguments with query strings (according to the query specifications) and 
supports the :conditions argument as a hash from field name to query string. 

In order for this extension to work you need to define a config/indextank.yml
in your application with the api_key and index_name settings for each 
environment (similar to config/database.yml).

Indexed fields in ActiveRecord are prepended an underscore when sent to 
IndexTank so if you plan to write query strings that use your field names you 
will have to prepend the underscore to the field names.

== Rails 2
In order for the ThinkingTank to be available you need to add:

    require 'thinkingtank'
    require 'thinkingtank/tasks'

to your Rakefile.

== Rails 3
{'fraction_non_alphanumeric': 0.031407522295463355, 'fraction_numerical': 0.0015509887553315238, 'mean_word_length': 4.466101694915254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1813669', 'n_tokens_mistral': 671, 'n_tokens_neox': 628, 'n_words': 374}