lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Indika Tantrigoda <indik...@gmail.com>
Subject Stored values and date math query
Date Tue, 26 Feb 2013 21:05:26 GMT
Hi All,

I am trying to use a stored value in the index and add it to a date
component as follows

sessionAvailableNowQuery = {!edismax}(start_time:[* TO
1970-01-01T12:37:030Z] AND end_time:[1970-01-01T12:37:030Z +
(_val_:order_prep_time)MINUTES TO *] AND consumers:[1 TO *] AND
session_time_range_available:true)

(order_prep_time is the stored value)

However, when doing so causes the query to return incorrect results. The
query is part of a if/else query present in the fields (fl) list

_session_available_now_:if(exists(query($sessionAvailableNowQuery)), 100, 0)

Is it possible to retrive an integer value from the index and pass it on it
a date math query ? Is there anything else that needs to be in the query ?

Thanks in advance.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message