On Thu, May 10, 2007 at 11:43:22AM +0200, Allen Young wrote:
> Jens Kraemer wrote:
> > You should try to use ferret instead of your DB as much as possible.
> > 
> How can I use search a decimal type attribute using ferret? For example, 
> I want all materials whose description contains "ruby" and resistance is 
> between 0.1 and 0.5? I have a lot of decimal and integer type attributes 
> which I don't know how to index with ferret. Any advice about this?

Use untokenized fields for such values, and normalize them to a fixed
length before indexing. I'd also normalize the decimals to integers. 

Regarding your incremental queries, the QueryFilter class might be useful:
http://ferret.davebalmain.com/api/classes/Ferret/Search/QueryFilter.html



Jens


-- 
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
 
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to