Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get & save if not exists response from escalation staff to database #8

Open
ceefour opened this issue Aug 3, 2016 · 3 comments
Open
Milestone

Comments

@ceefour
Copy link

ceefour commented Aug 3, 2016

Response databases are:

  1. PostgreSQL for "master". This can be updated at any time
  2. Elasticsearch index for query, it will be reindexed based on master from PostgreSQL

So the Elasticsearch response index can be queried next time there is same question.

Data: HelpdeskMessage + counter askedCount

Workflow:

  1. Check dulu ke response table. inputText perlu dipreprocess dulu sebelum matching: lowercased, hilangkan punctuation (, . ? ! dll.)
    • Bila inputText match maka
      1. increment askedCount di table
      2. return HelpdeskMessage yang ketemu di response table
    • Bila tidak match maka return null
  2. Insert response , sesuai HelpdeskMessage yang sudah ada responseText. askedCount = 1
@ceefour ceefour added this to the 1.1 milestone Aug 3, 2016
@gentry-swanri
Copy link

mas saya boleh minta sql untuk tabel master di "PostgreSQL" ?

@ceefour
Copy link
Author

ceefour commented Aug 11, 2016 via email

@ceefour ceefour changed the title Save reply from escalation staff to database Get & save if not exists response from escalation staff to database Aug 12, 2016
@ceefour
Copy link
Author

ceefour commented Sep 7, 2016

@gentry-swanri cara kerjanya bisa lihat keterhubungan antara SubmitService dengan EscalationService

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants