GET /api/0.2/search/?fulltext=Savoretti,%20Joseph
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-446-120",
            "model": "entity",
            "index": "0 0/{'value': 2, 'relation': 'eq'}",
            "links": {
                "html": "https://ddr.densho.org/ddr-densho-446-120/",
                "json": "https://ddr.densho.org/api/0.2/ddr-densho-446-120/",
                "img": "https://ddr.densho.org/media/ddr-densho-446/ddr-densho-446-120-mezzanine-17da348950-a.jpg",
                "thumb": "http://ddrmedia.local/media/ddr-densho-446/ddr-densho-446-120-mezzanine-17da348950-a.jpg"
            },
            "title": "Letter from Joseph Savoretti to Lt. Col. Merillat Moses",
            "description": "Acknowledgement of receipt of letter from June 21. Department of Justice has discontinued practice of amending registration records and cannot consider Tsai's request.",
            "extent": "8W x 10.5H",
            "links_children": "ddr-densho-446-120",
            "creators": [
                {
                    "role": "author",
                    "namepart": "Savoretti, Joseph"
                }
            ],
            "topics": [
                {
                    "term": "World War II -- Military service",
                    "id": "88"
                },
                {
                    "term": "Immigration and citizenship",
                    "id": "1"
                },
                {
                    "term": "World War II -- \"Enemy alien\" classification",
                    "id": "84"
                },
                {
                    "term": "Immigration and citizenship -- Law and legislation",
                    "id": "340"
                },
                {
                    "term": "World War II -- Military service -- Military Intelligence Service",
                    "id": "91"
                }
            ],
            "format": "doc",
            "language": [
                "eng"
            ],
            "persons": [
                {
                    "namepart": "Tsai, Ai Chih"
                },
                {
                    "namepart": "United States Immigration and Naturalization Service"
                },
                {
                    "namepart": "Moses, Merillat"
                },
                {
                    "namepart": "United States Department of State"
                },
                {
                    "namepart": "United States Department of Justice"
                },
                {
                    "namepart": "United States War Department Military Intelligence Service"
                },
                {
                    "namepart": "Savoretti, Joseph"
                }
            ],
            "contributor": "Densho",
            "rights": "cc",
            "genre": "correspondence",
            "location": "Philadelphia, Pennsylvania",
            "creation": "July 13, 1945",
            "status": "completed",
            "search_hidden": "Savoretti, Joseph author Tsai, Ai Chih \nUnited States Immigration and Naturalization Service \nMoses, Merillat \nUnited States Department of State \nUnited States Department of Justice \nUnited States War Department Military Intelligence Service \nSavoretti, Joseph",
            "download_large": "ddr-densho-446-120-mezzanine-17da348950-a.jpg"
        },
        {
            "id": "ddr-densho-446-121",
            "model": "entity",
            "index": "1 1/{'value': 2, 'relation': 'eq'}",
            "links": {
                "html": "https://ddr.densho.org/ddr-densho-446-121/",
                "json": "https://ddr.densho.org/api/0.2/ddr-densho-446-121/",
                "img": "https://ddr.densho.org/media/ddr-densho-446/ddr-densho-446-121-mezzanine-5365c574f0-a.jpg",
                "thumb": "http://ddrmedia.local/media/ddr-densho-446/ddr-densho-446-121-mezzanine-5365c574f0-a.jpg"
            },
            "title": "Letter from Lt. Col. Merillat Moses to Joseph Savoretti",
            "description": "Requests advice on the next steps Tsai should take. Also requests the return of the correspondence Tsai sent.",
            "extent": "8W x 10.5H",
            "links_children": "ddr-densho-446-121",
            "creators": [
                {
                    "role": "author",
                    "namepart": "Moses, Merillat"
                }
            ],
            "topics": [
                {
                    "term": "World War II -- Military service",
                    "id": "88"
                },
                {
                    "term": "Immigration and citizenship",
                    "id": "1"
                },
                {
                    "term": "World War II -- \"Enemy alien\" classification",
                    "id": "84"
                },
                {
                    "term": "Immigration and citizenship -- Law and legislation",
                    "id": "340"
                },
                {
                    "term": "World War II -- Military service -- Military Intelligence Service",
                    "id": "91"
                }
            ],
            "format": "doc",
            "language": [
                "eng"
            ],
            "persons": [
                {
                    "namepart": "Tsai, Ai Chih"
                },
                {
                    "namepart": "United States Immigration and Naturalization Service"
                },
                {
                    "namepart": "Moses, Merillat"
                },
                {
                    "namepart": "United States Department of Justice"
                },
                {
                    "namepart": "United States War Department Military Intelligence Service"
                },
                {
                    "namepart": "Savoretti, Joseph"
                }
            ],
            "contributor": "Densho",
            "rights": "cc",
            "genre": "correspondence",
            "location": "Washington, District of Columbia",
            "creation": "July 16, 1945",
            "status": "completed",
            "search_hidden": "Moses, Merillat author Tsai, Ai Chih \nUnited States Immigration and Naturalization Service \nMoses, Merillat \nUnited States Department of Justice \nUnited States War Department Military Intelligence Service \nSavoretti, Joseph",
            "download_large": "ddr-densho-446-121-mezzanine-5365c574f0-a.jpg"
        }
    ],
    "query": {
        "query": {
            "query_string": {
                "query": "Savoretti, Joseph",
                "fields": [
                    "id",
                    "model",
                    "links_html",
                    "links_json",
                    "links_img",
                    "links_thumb",
                    "links_children",
                    "status",
                    "public",
                    "title",
                    "description",
                    "contributor",
                    "creators",
                    "creators.namepart",
                    "facility",
                    "format",
                    "genre",
                    "geography",
                    "label",
                    "language",
                    "creation",
                    "location",
                    "persons",
                    "rights",
                    "topics",
                    "image_url",
                    "display_name",
                    "bio",
                    "extent",
                    "search_hidden"
                ],
                "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",
            "creators.namepart",
            "facility",
            "format",
            "genre",
            "geography",
            "label",
            "language",
            "creation",
            "location",
            "persons",
            "rights",
            "topics",
            "image_url",
            "display_name",
            "bio",
            "extent",
            "search_hidden"
        ]
    }
}