I do not think this is possible. You will probably want to handle
this logic on your side during indexing. Index the document with the
fist price, then as that price expires, update the document with the
new price.
Thanks,
Matt Weber
eSr Technologies
http://www.esr-technologies.com
Would it work to index the item N times, where N is the number
of discrete date ranges?
Say you had a hat that was $10 from 1/1/09 to 6/30/09 and $11 from
7/1/09 to 12/30/09. Just index it twice with the dates something like
valid_from, valid_to. Then form your queries so you were looking
in the
That is *very* clever and will almost certainly work. My only concern is
that it doubles the overhead (and has a not insignificant effect on the
complexity of my code) for what is essentially a minor feature. I'd like
to keep this approach on the back-burner and see if a more conventional
WARNING: Low level Solr hacking and brainstorming:
I _wonder_ if you could plug in a FieldSelector that was aware of the
date and then made the appropriate decision to return the correct
price field. (On a side note, I'd love to see Solr support generic
FieldSelector plugin capability)
Hi Grant,
The problem is that even if we're only displaying 16 products at a time,
we're potentially sorting over a collection of thousands. This means
it's pretty essential for the ordering from solr to be correct.
- Andy
Grant Ingersoll wrote:
WARNING: Low level Solr hacking and
On Wed, May 6, 2009 at 7:32 AM, Andrew Ingram a...@andrewingram.net wrote:
Basically, a product has two price values and a date, the product
effectively has one price before the date and the other one after.
This poses no problem for the site itself since I can use conditional
logic, but I
On Thu, May 7, 2009 at 6:15 AM, Yonik Seeley yo...@lucidimagination.com wrote:
On Wed, May 6, 2009 at 7:32 AM, Andrew Ingram a...@andrewingram.net wrote:
Basically, a product has two price values and a date, the product
effectively has one price before the date and the other one after.
This
How about this -
Lets say your domain objects had these three things you care about - P1, D
and P2 (P1 is the price valid before D and P2 after this date).
Index each such document twice (Please don't kill me for suggesting this).
There are two fields which you should index with the document -