Paging for nested objects


(arthur.mironov) #1

Hello, I'm new in elasticsearch and I have a question.
How can I do paging for nested object and is it possible? (I need to get
comments with paging)

My mappping:
{
"test": {
"mappings": {
"completion": {
"properties": {
"suggest": {
"type": "string",
"index": "not_analyzed"
}
}
},
"post": {
"properties": {
"comments": {

              "type": "nested",
              "properties": {
                 "created_time": {
                    "type": "date",
                    "format": "dateOptionalTime"
                 },
                 "id": {
                    "type": "string",
                    "index": "not_analyzed"
                 },
                 "text": {
                    "type": "string"
                 }
              }
           },
           "created_time": {
              "type": "date",
              "format": "dateOptionalTime"
           },
           "text": {
              "type": "string"
           },
           "thumbnail": {
              "type": "string",
              "index": "not_analyzed"
           },
           "title": {
              "type": "string"
           }
        }
     }
  }

}
}

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/23fa5330-be0d-410c-99db-8eb924c0bdac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Adrien Grand) #2

Hi,

Unfortunately this is not possible.

On Mon, Aug 11, 2014 at 12:48 PM, arthur.mironov@progforce.com wrote:

Hello, I'm new in elasticsearch and I have a question.
How can I do paging for nested object and is it possible? (I need to get
comments with paging)

My mappping:
{
"test": {
"mappings": {
"completion": {
"properties": {
"suggest": {
"type": "string",
"index": "not_analyzed"
}
}
},
"post": {
"properties": {
"comments": {

              "type": "nested",
              "properties": {
                 "created_time": {
                    "type": "date",
                    "format": "dateOptionalTime"
                 },
                 "id": {
                    "type": "string",
                    "index": "not_analyzed"
                 },
                 "text": {
                    "type": "string"
                 }
              }
           },
           "created_time": {
              "type": "date",
              "format": "dateOptionalTime"
           },
           "text": {
              "type": "string"
           },
           "thumbnail": {
              "type": "string",
              "index": "not_analyzed"
           },
           "title": {
              "type": "string"
           }
        }
     }
  }

}
}

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/23fa5330-be0d-410c-99db-8eb924c0bdac%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/23fa5330-be0d-410c-99db-8eb924c0bdac%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5JfbQqet3Z_dJY%3D6n0J0stLFky7LMmvrsxyPekeciGdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3