jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Indexing numeric properties
Date Tue, 18 Sep 2007 09:24:12 GMT
Kilian Evang wrote:
> ...are LONG and DOUBLE properties indexed? If not, (how) can I turn this 
> on?

yes, LONG and DOUBLE properties are automatically indexed.

> For  example, I would like to be able to efficiently search for all nodes 
> where a certain DOUBLE property exists and is > 1000000.

if you use the correct type for the literal the query will work. 1000000 
represents a LONG literal while 1000000.0 is of type double. Jackrabbit does not 
convert LONG or DOUBLE literals, which means you have to take care of the 
correct type.

regards
  marcel

Mime
View raw message