GET /api/0.2/search/?fulltext=Hakodate+Bay+and+Town%2C+Hokkaido%2C+Japan
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-one-2-18",
            "model": "entity",
            "index": "0 0/{'relation': 'eq', 'value': 2}",
            "links": {
                "html": "http://ddr.densho.org/ddr-one-2-18/",
                "json": "http://ddr.densho.org/api/0.2/ddr-one-2-18/",
                "img": "https://ddr.densho.org/media/ddr-one-2/ddr-one-2-18-master-b00906a1a2-a.jpg",
                "thumb": "http://192.168.0.30/media/ddr-one-2/ddr-one-2-18-master-b00906a1a2-a.jpg"
            },
            "title": "View of Hakodate Bay from Hakodate Mountain",
            "description": "Sepia-toned photographic print of Hakodate Bay with ships in bay, town in foreground, taken from Hakodate Mountain.  Inscribed on back: \"SEPT 48/TOWN OF HAKODATE + BAY/BERONA 2\" [In Japanese].",
            "format": "img",
            "location": "Hakodate Bay and Town, Hokkaido, Japan",
            "rights": "cc",
            "contributor": "Oregon Nikkei Endowment",
            "links_children": "ddr-one-2-18",
            "topics": [
                {
                    "term": "Japan -- Post-World War II",
                    "id": "165"
                },
                {
                    "term": "Japan -- United States civilians",
                    "id": "380"
                }
            ],
            "language": [
                "eng",
                "jpn"
            ],
            "status": "completed",
            "genre": "photograph",
            "creators": [
                {
                    "namepart": "Sakai, Shiuko",
                    "role": "photographer"
                }
            ]
        },
        {
            "id": "ddr-one-2-19",
            "model": "entity",
            "index": "1 1/{'relation': 'eq', 'value': 2}",
            "links": {
                "html": "http://ddr.densho.org/ddr-one-2-19/",
                "json": "http://ddr.densho.org/api/0.2/ddr-one-2-19/",
                "img": "https://ddr.densho.org/media/ddr-one-2/ddr-one-2-19-master-bf4697c153-a.jpg",
                "thumb": "http://192.168.0.30/media/ddr-one-2/ddr-one-2-19-master-bf4697c153-a.jpg"
            },
            "title": "View of Hakodate Bay from Hakodate Mountain",
            "description": "Black and white photographic print of Hakodate Bay with ships in bay, town in foreground, taken from Hakodate Mountain. Duplicate to ONLC 4213 (ddr-one-2-19). Inscribed on back: \"Sept 48/Hakodate Bay + town/from Hakodate Mt./Some of the ships in the bay/are repatriation ships.\"",
            "format": "img",
            "location": "Hakodate Bay and Town, Hokkaido, Japan",
            "rights": "cc",
            "contributor": "Oregon Nikkei Endowment",
            "links_children": "ddr-one-2-19",
            "language": [
                "eng"
            ],
            "status": "completed",
            "genre": "photograph",
            "creators": [
                {
                    "namepart": "Sakai, Shiuko",
                    "role": "photographer"
                }
            ]
        }
    ],
    "query": {
        "aggs": {
            "facility": {
                "nested": {
                    "path": "facility"
                },
                "aggs": {
                    "facility_ids": {
                        "terms": {
                            "size": 1000,
                            "field": "facility.id"
                        }
                    }
                }
            },
            "topics": {
                "nested": {
                    "path": "topics"
                },
                "aggs": {
                    "topics_ids": {
                        "terms": {
                            "size": 1000,
                            "field": "topics.id"
                        }
                    }
                }
            },
            "genre": {
                "terms": {
                    "field": "genre"
                }
            },
            "rights": {
                "terms": {
                    "field": "rights"
                }
            },
            "format": {
                "terms": {
                    "field": "format"
                }
            }
        },
        "_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"
        ],
        "query": {
            "query_string": {
                "default_operator": "AND",
                "fields": [
                    "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"
                ],
                "analyze_wildcard": false,
                "query": "Hakodate Bay and Town, Hokkaido, Japan",
                "allow_leading_wildcard": false
            }
        }
    }
}