GET /api/0.2/search/?fulltext=persons:Matsudaira,%20Koto
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "total": 2,
    "limit": 25,
    "offset": 0,
    "prev_offset": null,
    "next_offset": null,
    "page_size": 25,
    "this_page": 1,
    "num_this_page": 2,
    "prev_api": "",
    "next_api": "",
    "objects": [
        {
            "id": "ddr-densho-274-130",
            "model": "entity",
            "index": "0 0/{'value': 2, 'relation': 'eq'}",
            "links": {
                "html": "https://ddr.densho.org/ddr-densho-274-130/",
                "json": "https://ddr.densho.org/api/0.2/ddr-densho-274-130/",
                "img": "https://ddr.densho.org/media/ddr-densho-274/ddr-densho-274-130-mezzanine-ac52ec2c1a-a.jpg",
                "thumb": "http://ddrmedia.local/media/ddr-densho-274/ddr-densho-274-130-mezzanine-ac52ec2c1a-a.jpg"
            },
            "title": "Reply to letter regarding use of term \"Jap\" on a television program",
            "description": "Letter written to Shosuke Sasaki from Dr. Koto Matsudaira, Ambassador to Japan.",
            "extent": "2436W x 3200H (pixels)",
            "links_children": "ddr-densho-274-130",
            "creators": [
                {
                    "role": "author",
                    "namepart": "Sasaki, Shosuke"
                }
            ],
            "format": "doc",
            "language": [
                "eng"
            ],
            "persons": [
                "Matsudaira, Koto",
                "Sasaki, Shosuke"
            ],
            "contributor": "Densho",
            "rights": "cc",
            "genre": "correspondence",
            "location": "Sent to New York",
            "status": "completed",
            "download_large": "ddr-densho-274-130-mezzanine-ac52ec2c1a-a.jpg"
        },
        {
            "id": "ddr-njpa-1-825",
            "model": "entity",
            "index": "1 1/{'value': 2, 'relation': 'eq'}",
            "links": {
                "html": "https://ddr.densho.org/ddr-njpa-1-825/",
                "json": "https://ddr.densho.org/api/0.2/ddr-njpa-1-825/",
                "img": "https://ddr.densho.org/media/ddr-njpa-1/ddr-njpa-1-825-mezzanine-3040753fb7-a.jpg",
                "thumb": "http://ddrmedia.local/media/ddr-njpa-1/ddr-njpa-1-825-mezzanine-3040753fb7-a.jpg"
            },
            "title": "Dr. Koto Matsudaria and Henry Cabot Lodge shaking hands",
            "description": "Caption on reverse: \"NY 2 INP Sountphoto..10/1/57. United Nations, N.Y..Japanese Ambassador Dr. Koto Matsudaira shakes hands with U.S. Ambassador Henry Cabot Lodge at today's session of the UN Security Council at which Japan was made a member. Photo Sasse.\"",
            "extent": "4.25W x 5.75H",
            "links_children": "ddr-njpa-1-825",
            "creators": [
                {
                    "role": "publisher",
                    "namepart": "INP Soundphoto"
                }
            ],
            "format": "img",
            "language": [
                "eng"
            ],
            "persons": [
                "Matsudaira, Koto",
                "Lodge, Henry Cabot"
            ],
            "contributor": "Hawai'i Times Photo Archives Foundation",
            "rights": "pcc",
            "genre": "photograph",
            "location": "New York, New York",
            "status": "completed",
            "download_large": "ddr-njpa-1-825-mezzanine-3040753fb7-a.jpg"
        }
    ],
    "query": {
        "query": {
            "bool": {
                "filter": [
                    {
                        "term": {
                            "persons": "Matsudaira, Koto"
                        }
                    }
                ]
            }
        },
        "aggs": {
            "facility": {
                "nested": {
                    "path": "facility"
                },
                "aggs": {
                    "facility_ids": {
                        "terms": {
                            "field": "facility.id",
                            "size": 1000
                        }
                    }
                }
            },
            "format": {
                "terms": {
                    "field": "format"
                }
            },
            "genre": {
                "terms": {
                    "field": "genre"
                }
            },
            "rights": {
                "terms": {
                    "field": "rights"
                }
            },
            "topics": {
                "nested": {
                    "path": "topics"
                },
                "aggs": {
                    "topics_ids": {
                        "terms": {
                            "field": "topics.id",
                            "size": 1000
                        }
                    }
                }
            }
        },
        "_source": [
            "id",
            "model",
            "links_html",
            "links_json",
            "links_img",
            "links_thumb",
            "links_children",
            "status",
            "public",
            "title",
            "description",
            "contributor",
            "creators",
            "facility",
            "format",
            "genre",
            "geography",
            "label",
            "language",
            "location",
            "persons",
            "rights",
            "topics",
            "image_url",
            "display_name",
            "bio",
            "extent"
        ]
    }
}