The API uses your public key for performing searches and your private key for re-indexing records, and creating new archives.
All API calls return JSON objects.
To display the record public and private key click on the archive record. The keys are also returned when calling the API for creating an archive.
Getting suggested search terms
wzsrch.wizcloud.co.il/srch/:recordPublicKey/:str/zz
Parameters:
str: the search term
recordPublicKey:the archive public key
zz: a constant ending the url
Returns:
Likely search terms and their concurrency.
Getting suggested records
wzsrch.wizcloud.co.il/srch/:recordPublicKey/:str/rr
Parameters:
str: the search term
recordPublicKey: the archive public key
rr: a constant ending the url
Returns:
Up to 20 records matching the search term, including fuzzy search.
Getting records with a limit
wzsrch.wizcloud.co.il/srchrecs/:recordPublicKey/:str/:from/:to
Parameters:
str: the search term
From,to: the records limit.
recordPublicKey: the archive public key
Result:
Records containing the search term words.
Remove all archives of a certain database
/removeDbRecords/:userPrivateKey/:db
Parameters:
db: the remote database name
userPrivateKeyis: the user public key
Result:
Removed records
Re-indexing the archive
Use the following API to re-index the archive.
/reFileAllApi/:recordPrivateKey
Parameters:
recordPrivateKey is the archive private key
Result:
“OK”
Re-indexing certain records in an archive
/reFileRecords/:recordPrivateKey/:clientRecords
Parameters:
recordPrivateKey is the archive private key
clientRecords is a comma separated list of IDs. These are the record IDs to be re-indexed.
Result:
“OK”
Creating or updating an archive
Please watch our video on creating an archive, before trying to use this method.
This API uses POST (not GET).
The urr is:
/updateRecord/archiveID | new/:userPrivateKey
Url parameters:
archiveID is the ID of the archive that U want updated.If you need to creat a new
archive, put the string “new” as the id.
userPrivateKey is your private key
The post body is:
serverIp: The IP or domain of your MYSQL server
dbName: The database name
dbUser: A read only user for the database and tables U like to index
dbPass: User password
selectSql: Select SQL.
fieldToFile: Database field you want indexed
recordIdField: Table unique record id field
recordScoreField: score field
Result:
A JSON with properties:
insertId: The id of the created archive.
publicKey:The new archive public key
privateKey:The new archive private key