Is it possible to pass conditions when indexing on the model?
Something like:

  indexes auctions.date, :conditions => {auctions.date >
Time.now.to_i, :as => :auction_date

Thanx again!

--
Iván Belmonte

On Mar 11, 4:31 am, Iván <[email protected]> wrote:
> oh my god... i'm so sorry. This is what my real code looked like.
> I copied my code changing a few things for my explanation being
> simpler, but this part was a real typo. Thanx and sorry.
>
> Appart of that being right... now it gives me no result when searching
> by auction date.
> I'm going to try some tweaking
>
> Thanks again!
>
> --
> Iván Belmonte
>
> On Mar 11, 4:21 am, James Healy <[email protected]> wrote:
>
> > > A search by keywords work, matching any word of the description, the 
> > > author
> > > name, etc... the 'update_date' works too. But if i pass an auction date, 
> > > it
> > > does not work... it simply gives me all the results matching the rest of
> > > kywords and conditions. It seems it's not filtering the auction date.
> > > I've tried the query using :with and also using :conditions. None of them
> > > work.
>
> > Is the code in your email copied verbatim from your application?
>
> > If so, your auctions.date attribute is labeled :acution_dates, and
> > you're filtering on :auction_dates.
>
> > If that's just a typo from when you copied the code into an email, then
> > the I'm not sure what might be causing the problem. Hopefully someone
> > else will spot something.
>
> > -- James Healy <jimmy-at-deefa-dot-com>  Wed, 11 Mar 2009 14:17:56 +1100
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to