Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we add array of objects in amazon cloudsearch in json format?

I am trying to create a domain and uploading a sample data which is like :

[
{
    "type": "add",
    "id": "1371964",
    "version": 1,
    "lang": "eng",
    "fields": {
        "id": "1371964",
        "uid": "1200983280",
        "time": "2013-12-23 13:00:26",
        "orderid": "1200983280",
        "callerid": "66580662",
        "is_called": "1",
        "is_synced": "1",
        "is_sent": "1",
        "allcaller": [
            {
                "sno": "1085770",
                "uid": "1387783883.30547",
                "lastfun": null,
                "callduration": "00:00:46",
                "request_id": "1371964"
            }
        ]
    }
}]

when I am uploading sample data while creating a domain, cloudsearch is not taking it. If I remove allcaller array then it takes it smoothly.

If cloudsearch does not allowing object arrays, then how should I format this json??

like image 843
Ashy saini Avatar asked Jun 04 '14 11:06

Ashy saini


People also ask

Is Amazon CloudSearch deprecated?

Amazon search is deprecated: Amazon search service is no longer supported. To set up a search functionality on your site(s), configure one of the three built-in search services instead. Amazon Cloud Search is deprecated in Sitefinity 13.3. 7600.0.

What is CloudSearch used for?

Google Cloud Search allows employees of a company to search and retrieve information, such as internal documents, database fields, and CRM data, from the company's internal data repositories.

What is facet in CloudSearch?

A facet is an index field that represents a category that you want to use to refine and filter search results. When you submit search requests to Amazon CloudSearch, you can request facet information to find out how many documents share the same value in a particular field.


1 Answers

Just found after searching on aws forums, cloudsearch doesnot allow nested json (object arrays) :(

https://forums.aws.amazon.com/thread.jspa?messageID=405879&#405879

Time to try Elastic search.

like image 113
Ashy saini Avatar answered Oct 10 '22 03:10

Ashy saini