Loading ...
Sorry, an error occurred while loading the content.

180Re: range filteration

Expand Messages
  • tacoman_cool
    Aug 4, 2009
    • 0 Attachment
      Hi Irshad,

      Find doesn't actually support what you are trying to do there, although it is hinting at syntax I'd like to support in the future. What you can do is filter a pre-filtered list of indexes.

      fruits.find({water:{gt:80}},fruits.find({water:{lt:90}}));

      Ian

      --- In taffydb@yahoogroups.com, "irshadansari_06" <irshadahmed.ansari@...> wrote:
      >
      > Hi All,
      >
      > I am using taffy 1.7.2 version.
      > Can anyone let me know how to filter record between a specific range.
      > eg: i want to filter records having price greater than 20 and less than 50
      >
      > I am using the following code:
      > fruits.find({water:{gt:80}},{water:{lt:90}});
      >
      > But it only fetches record greater than 80.
      >
      > can anyone help to fetch records between 80 and 90.
      >
      > Thanks in advance,
      > Irshad
      >
    • Show all 6 messages in this topic