These are chat archives for LearnBoost/mongoose

21st
Jan 2015
Vlad
@timadevelop
Jan 21 2015 23:51

hi! I use the mongoosastic and now I don`t know how to do something like this:

Post.search({
query_string: {
            query: 'one',
        },
                from: 23
                size: perPage,
.....

in elasticsearch.js it will so work:

client.search({
  index: 'posts',
  from: (pageNum - 1) * perPage,
  size: perPage,

But how can i do it with mongoosastic?