On Wed, Jan 21, 2009 at 11:04 AM, Ard Schrijvers
<[email protected]> wrote:
> But how do you know from a query what the type of a property is? I can
> imagine that you can get it pretty much working if you index a long and
> a double the same way to have them both working, but, who says if
> @someprop < 5 I am actually saying 'someprop' is a double or long. It
> very well might be a String property, and I just want all results with
> String value < 5, so nodes having someprop = '4', someprop='3', but also
> someprop = '43' as this is lexically smaller then 5. Even worse, some
> nodes may have someprop as a String, but some might have them as a
> double. I really do not see how it could even work properly currently.

You are right, if there are properties with different types found
under that name in the repository, it is not easy to do generally. I
was thinking that one could do the cast deep-down in the lucene query
handler at a point where you know which property type you have (since
it is indexed somehow). But I don't know if this point exists.

>> eg. from long to double, before doing the conversion. This is
>> what the spec suggests (but only saying "can"). I can imagine
>
> Do you know which section this is? (170 or 283?)

I mentioned it in my previous mail: 170, section 8.5.4.3 (sql part,
not mentioned at all for xpath).

Regards,
Alex

-- 
Alexander Klimetschek
[email protected]

Reply via email to