/search

Get information on a request

GET https://pm415.com/api/search/:query/:orgid/:showarchived

Gets the information on a text string request.

Path Parameters

Headers

{
    "success": true,
    "data": [
        {
            "title": "Api created",
            "description": "api created Description",
            "type": "initiatives",
            "author": {
                "id": 13,
                "email": "hwyxlisjb@emlpro.com",
                "firstName": "alena",
                "lastName": "prilipko"
            },
            "assignee": {},
            "organization": 17,
            "id": 25,
            "createdOn": "2019-04-27T07:05:58.621Z",
            "ownerId": "",
            "archived": 0
        }
    ],
    "query": {
        "query": {
            "bool": {
                "must": [
                    {
                        "multi_match": {
                            "query": "api",
                            "fields": [
                                "title",
                                "description",
                                "comment",
                                "author.firstName",
                                "author.lastName",
                                "author.email",
                                "assignee.firstName",
                                "assignee.lastName",
                                "assignee.email",
                                "ownerTable"
                            ],
                            "type": "phrase_prefix"
                        }
                    },
                    {
                        "match": {
                            "organization": "17"
                        }
                    }
                ]
            }
        }
    }
}

Add all data

GET https://pm415.com/api/search/reindex

Adds all data from database into elastic index.

Headers

{
    "success": true,
    "indexInitiatives": true,
    "indexItems": true,
    "indexBacklogs": true,
    "indexBugs": true,
    "indexComments": true
}

Last updated