convert license to elasticsearch