diff --git a/API_DOC.md b/API_DOC.md index 91e0ae0..3cb94c6 100644 --- a/API_DOC.md +++ b/API_DOC.md @@ -1,4 +1,4 @@ -# Ambar Web API v0.9.5 +# Ambar Web API v1.2.0 Ambar Web API documentation @@ -14,7 +14,8 @@ Ambar Web API documentation - [Search](#search) - [Search For Documents By Query](#search-for-documents-by-query) - - [Retrieve File Highlight by Query and SHA](#retrieve-file-highlight-by-query-and-sha) + - [Retrieve File Highlight by Query and fileId](#retrieve-file-highlight-by-query-and-fileid) + - [Retrieve Full File Highlight by Query and fileId](#retrieve-full-file-highlight-by-query-and-fileid) - [Sources](#sources) - [Get Available Sources](#get-available-sources) @@ -164,9 +165,9 @@ File meta or content not found ``` ## Upload File -
New source with description Automatically created on UI upload will be created if source didn't exist.
New source named uiupload with description Automatically created on UI upload will be created if source didn't exist.
This method is useful for getting higlights of large files > 30 MB
- GET api/search/:sha + GET api/search/:fileId ### Headers @@ -368,12 +369,12 @@ HTTP/1.1 400 BadRequest | Name | Type | Description | |---------|-----------|--------------------------------------| -| sha | String |file SHA
| +| fileId | String |file fileId
| | query | String |query string
| ### Examples -Retrieve Higlights for File with SHA `318be2290125e0a6cfb7229133ba3c4632068ae04942ed5c7c660718d9d41eb3` +Retrieve Higlights for File with fileId `318be2290125e0a6cfb7229133ba3c4632068ae04942ed5c7c660718d9d41eb3` ``` curl -i http://ambar:8004/api/search/318be2290125e0a6cfb7229133ba3c4632068ae04942ed5c7c660718d9d41eb3?query=John @@ -396,6 +397,48 @@ HTTP/1.1 200 OK HTTP/1.1 400 BadRequest +``` +HTTP/1.1 400 BadRequest +``` +## Retrieve Full File Highlight by Query and fileId + +This method is useful for getting higlights of large files > 30 MB
+ + GET api/search/:fileId/full + +### Headers + +| Name | Type | Description | +|---------|-----------|--------------------------------------| +| ambar-email | String |User email.
| +| ambar-email-token | String |User token.
| + +### Parameters + +| Name | Type | Description | +|---------|-----------|--------------------------------------| +| fileId | String |file fileId
| +| query | String |query string
| + +### Examples + +Retrieve Full Higlight for File with fileId `318be2290125e0a6cfb7229133ba3c4632068ae04942ed5c7c660718d9d41eb3` + +``` +curl -i http://ambar:8004/api/search/318be2290125e0a6cfb7229133ba3c4632068ae04942ed5c7c660718d9d41eb3/full?query=John +``` + +### Success Response + +HTTP/1.1 200 OK + +``` +Aesop, by some strange accident it seems to have entirelyFile Id to delete tag from.
| +| tagType | String |Tag type to delete.
| | tagName | String |Tag name to delete.
| ### Success Response @@ -582,7 +626,7 @@ HTTP/1.1 200 OK - POST api/tags/:fileId/:tagName + POST api/tags/:fileId/:tagType/:tagName ### Headers @@ -596,6 +640,7 @@ HTTP/1.1 200 OK | Name | Type | Description | |---------|-----------|--------------------------------------| | fileId | String |File Id to add tag to.
| +| tagType | String |Tag type to add.
| | tagName | String |Tag name to add.
| ### Success Response diff --git a/CHANGELOG.md b/CHANGELOG.md index 64dd1b4..bc00300 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,23 @@ Change log ========== +1.2.0 (2017-10-18) +------------------- + +Hello everyone! + +Ambar 1.2.0 is out! + +### What's new? + +- Now you can preview any file in Ambar +- If file contains some sensible data like emails, tax ids, vehicle ids, etc - Ambar recognizes and highlights them. We call this sensible data "named entities". +- You can search by named entities using query `entitites:"hello@ambar.cloud"` +- We added tags coloring depending on tag's type + +Before updating your Ambar to this version, you need to reset all the data in your Ambar with `sudo ./ambar.py reset`. After reset run `sudo ./ambar.py update` to get the latest version. + + 1.1.0 (2017-09-07) ------------------- diff --git a/Crawler b/Crawler index 96bbfff..f257f6e 160000 --- a/Crawler +++ b/Crawler @@ -1 +1 @@ -Subproject commit 96bbfff40d77c1de5733ec1144060ab6460ef028 +Subproject commit f257f6e8221ac2dd2b28ab80175688c297d8a986 diff --git a/FrontEnd b/FrontEnd index 9727403..c475e49 160000 --- a/FrontEnd +++ b/FrontEnd @@ -1 +1 @@ -Subproject commit 97274039a0c95e56f098fa7759017ca64401524c +Subproject commit c475e4919d55ab6f65a4f9c10204229b54150f9c diff --git a/Install b/Install index 2589f70..9539740 160000 --- a/Install +++ b/Install @@ -1 +1 @@ -Subproject commit 2589f70fc25647c1b7dc23cc2bbc112191967dc0 +Subproject commit 9539740dd215d73958e2c14f7cbe745a263cae7a diff --git a/README.md b/README.md index 830d3d6..b666276 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[](https://ambar.cloud) +[](https://ambar.cloud) [](https://github.com/RD17/ambar/blob/master/License.txt) [](https://blog.ambar.cloud) @@ -14,6 +14,7 @@ Ambar defines the new way to manage your documents out of the box: - Ingest documents from any source - Find documents and images instantly with Google-like search - Manage your documents with tags, hide irrelevant search results +- Auto tagging & named entitites recognition - Download or share links to your documents, even if they've been deleted from the source ## Features