# \[ANN\] acts\_as\_solr v.0.7 released

**URL:** <https://www.ruby-forum.com/t/ann-acts-as-solr-v-0-7-released/85852>\
**Category:** Rails\
**Created:** [February 16, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/ann-acts-as-solr-v-0-7-released/85852 "2007-02-16T19:57:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thiago\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@Thiago\_J](https://www.ruby-forum.com/u/Thiago_J)\
**Post date:** [February 16, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/ann-acts-as-solr-v-0-7-released/85852/1 "2007-02-16T19:57:30Z")

</div>

acts\_as\_solr v.0.7 has been released, and the changes are:

NEW: You can now specify the field types when indexing and searching if  
youâ€™d like to preserve its original type. Important: Make sure you  
update your schema.xml file.

Indexing

Each field passed can also be a hash with the value being a field type

class Electronic \< ActiveRecord::Base  
acts\_as\_solr :fields =\> [{:price =\> :range\_float}, {:current\_time =\>  
:date}]  
def current\_time  
Time.now  
end  
end

Searching

Electronic.find\_by\_solr “ipod AND price:[\* TO 59.99]”,  
:field\_types =\> [{:price =\> :range\_float}]

The field types accepted are:  
:float: Index the field value as a float (ie.: 12.87)  
:integer: Index the field value as an integer (ie.: 31)  
:boolean: Index the field value as a boolean (ie.: true/false)  
📅 Index the field value as a date (ie.: Wed Nov 15 23:13:03 PST  
2006)  
:string: Index the field value as a text string, not applying the same  
indexing filters as a regular text field  
:range\_integer: Index the field value for integer range queries (ie.:[5  
TO 20])  
:range\_float: Index the field value for float range queries (ie.:[14.56  
TO 19.99])

Setting the field type preserves its original type when indexed

FIX: Fixing sorting bug. Thanks for the catch Laurel  
FIX: Fixing small bug when installing the plugin  
NEW: Adding the :additional\_fields option to the acts\_as\_solr method

Home =\> [http://acts-as-solr.rubyforge.org/](http://acts-as-solr.rubyforge.org/)  
SVN =\> [http://opensvn.csie.org/acts\_as\_solr/trunk](http://opensvn.csie.org/acts_as_solr/trunk)

–  
Thiago J.

---

<div class="post-metadata">

**Author:** ![Thiago\_J](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@Thiago\_J](https://www.ruby-forum.com/u/Thiago_J)\
**Post date:** [April 20, 2007, 2:26am UTC](https://www.ruby-forum.com/t/ann-acts-as-solr-v-0-7-released/85852/2 "2007-04-20T02:26:20Z")

</div>

Hi Thiago,

I am wondering how usually we get new release and various features  
like highlighting etc. would be supported in any near term next  
release. Secondly, which is the official mailing list for acts\_as\_solr  
plugin.

-amit

On Feb 16, 11:57 am, Thiago J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
