Search for a file with the ID

I am trying to search for a file with the ID "fe4cec0f-4c57-4371-9828-a8ab01192285"

How would I do that? I suck as elastic :frowning:

Here is an example what is stored
contentType":{"name":"Asset"},"createdModifiedBy":[{"userType":0,"id":"fe4cec0f-4c57-4371-9828-a8ab01192285"}

It depends on your mapping.

From google, it looks like I can do /_mapping

This is what I got

    "mappings": {
        "UniqueKeyEntry": {
            "properties": {
                "entityId": {
                    "type": "string",
                    "index": "not_analyzed",
                    "doc_values": true
                },
                "fieldId": {
                    "type": "string",
                    "index": "not_analyzed",
                    "doc_values": true
                },
                "fieldValue": {
                    "type": "string",
                    "index": "not_analyzed",
                    "doc_values": true
                },
                "id": {
                    "type": "string",
                    "index": "not_analyzed",
                    "doc_values": true
                }
            }
        },
        "UniqueKeyLookupEntry": {
            "properties": {
                "id": {
                    "type": "string",
                    "index": "not_analyzed",
                    "doc_values": true
                },
                "uniqueKeyEntryId": {
                    "type": "string",
                    "index": "not_analyzed",
                    "doc_values": true
                }
            }
        }
    }
},

Sounds ok (although it's probably an old version).

Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.