GET /api/0.2/search/?fulltext=Sent+from+Seattle%2C+Washington+to+Newell%2C+California
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "total": 4,
    "limit": 25,
    "offset": 0,
    "prev_offset": null,
    "next_offset": null,
    "page_size": 25,
    "this_page": 1,
    "num_this_page": 4,
    "prev_api": "",
    "next_api": "",
    "objects": [
        {
            "id": "ddr-densho-324-69",
            "model": "entity",
            "index": "0 0/{'value': 4, 'relation': 'eq'}",
            "links": {
                "html": "http://ddr.densho.org/ddr-densho-324-69/",
                "json": "http://ddr.densho.org/api/0.2/ddr-densho-324-69/",
                "img": "https://ddr.densho.org/media/ddr-densho-324/ddr-densho-324-69-mezzanine-9d19d0c824-a.jpg",
                "thumb": "http://192.168.0.30/media/ddr-densho-324/ddr-densho-324-69-mezzanine-9d19d0c824-a.jpg"
            },
            "title": "Proof of claim form",
            "description": "",
            "extent": "5.5W x 8.5H",
            "links_children": "ddr-densho-324-69",
            "creators": [
                {
                    "role": "author",
                    "namepart": "Utterback, Joe S."
                }
            ],
            "format": "doc",
            "language": [
                "eng"
            ],
            "persons": [
                "Utterback, Joe S."
            ],
            "contributor": "Densho",
            "rights": "cc",
            "genre": "misc_document",
            "location": "Sent from Seattle, Washington to Newell, California",
            "facility": [
                {
                    "term": "Tule Lake",
                    "id": "10"
                }
            ],
            "status": "completed"
        },
        {
            "id": "ddr-densho-324-72",
            "model": "entity",
            "index": "1 1/{'value': 4, 'relation': 'eq'}",
            "links": {
                "html": "http://ddr.densho.org/ddr-densho-324-72/",
                "json": "http://ddr.densho.org/api/0.2/ddr-densho-324-72/",
                "img": "https://ddr.densho.org/media/ddr-densho-324/ddr-densho-324-72-mezzanine-e52b46808d-a.jpg",
                "thumb": "http://192.168.0.30/media/ddr-densho-324/ddr-densho-324-72-mezzanine-e52b46808d-a.jpg"
            },
            "title": "Letter sent to Kinuta Uno at Tule Lake concentration camp",
            "description": "Confirmation of funds sent to Misae Uno.",
            "extent": "8.5W x 11H",
            "links_children": "ddr-densho-324-72",
            "creators": [
                {
                    "role": "author",
                    "namepart": "Buhl, M.A."
                }
            ],
            "format": "doc",
            "language": [
                "eng"
            ],
            "persons": [
                "Buhl, M.A."
            ],
            "contributor": "Densho",
            "rights": "cc",
            "genre": "correspondence",
            "location": "Sent from Seattle, Washington to Newell, California",
            "facility": [
                {
                    "term": "Tule Lake",
                    "id": "10"
                }
            ],
            "status": "completed"
        },
        {
            "id": "ddr-densho-324-10",
            "model": "entity",
            "index": "2 2/{'value': 4, 'relation': 'eq'}",
            "links": {
                "html": "http://ddr.densho.org/ddr-densho-324-10/",
                "json": "http://ddr.densho.org/api/0.2/ddr-densho-324-10/",
                "img": "https://ddr.densho.org/media/ddr-densho-324/ddr-densho-324-10-mezzanine-df9e1f7776-a.jpg",
                "thumb": "http://192.168.0.30/media/ddr-densho-324/ddr-densho-324-10-mezzanine-df9e1f7776-a.jpg"
            },
            "title": "Letter to Kinuta Uno at Tule Lake concentration camp",
            "description": "Correspondence regarding an inventory of possessions left behind, as well as for the sale of some large items.",
            "extent": "8.5W x 11H",
            "links_children": "ddr-densho-324-10",
            "creators": [
                {
                    "role": "author",
                    "namepart": "Shield, L.P."
                }
            ],
            "topics": [
                {
                    "term": "World War II -- Economic losses",
                    "id": "59"
                }
            ],
            "format": "doc",
            "language": [
                "eng"
            ],
            "persons": [
                "Shield, L.P."
            ],
            "contributor": "Densho",
            "rights": "cc",
            "genre": "correspondence",
            "location": "Sent from Seattle, Washington to Newell, California",
            "facility": [
                {
                    "term": "Tule Lake",
                    "id": "10"
                }
            ],
            "status": "completed"
        },
        {
            "id": "ddr-densho-324-71",
            "model": "entity",
            "index": "3 3/{'value': 4, 'relation': 'eq'}",
            "links": {
                "html": "http://ddr.densho.org/ddr-densho-324-71/",
                "json": "http://ddr.densho.org/api/0.2/ddr-densho-324-71/",
                "img": "https://ddr.densho.org/media/ddr-densho-324/ddr-densho-324-71-mezzanine-c85e876569-a.jpg",
                "thumb": "http://192.168.0.30/media/ddr-densho-324/ddr-densho-324-71-mezzanine-c85e876569-a.jpg"
            },
            "title": "Letter sent to Kinuta Uno at Tule Lake concentration camp",
            "description": "Correspondence from Carl Prato regarding sale of the Uno's farm and equipment.",
            "extent": "8.5W x 11H",
            "links_children": "ddr-densho-324-71",
            "creators": [
                {
                    "role": "author",
                    "namepart": "Prato, Carl"
                }
            ],
            "topics": [
                {
                    "term": "Industry and employment -- Agriculture",
                    "id": "6"
                },
                {
                    "term": "World War II -- Economic losses",
                    "id": "59"
                },
                {
                    "term": "World War II -- Mass removal (\"evacuation\")",
                    "id": "57"
                }
            ],
            "format": "doc",
            "language": [
                "eng"
            ],
            "persons": [
                "Prato, Carl",
                "Shield, L.P."
            ],
            "contributor": "Densho",
            "rights": "cc",
            "genre": "correspondence",
            "location": "Sent from Seattle, Washington to Newell, California",
            "facility": [
                {
                    "term": "Tule Lake",
                    "id": "10"
                }
            ],
            "status": "completed"
        }
    ],
    "query": {
        "query": {
            "query_string": {
                "query": "Sent from Seattle, Washington to Newell, California",
                "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",
                    "extent"
                ],
                "analyze_wildcard": false,
                "allow_leading_wildcard": false,
                "default_operator": "AND"
            }
        },
        "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"
        ]
    }
}