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

Generate permalinks for each chat log in search backend #111

Open
rtnpro opened this issue May 26, 2014 · 1 comment
Open

Generate permalinks for each chat log in search backend #111

rtnpro opened this issue May 26, 2014 · 1 comment

Comments

@rtnpro
Copy link
Member

rtnpro commented May 26, 2014

We need to create permalinks for each chat log pushed to our search backend.

The permalink can be a combination of: server name, channel name, _id field of mongodb document.

@D-Ne0
Copy link
Contributor

D-Ne0 commented May 27, 2014

Hey, how about we don't use combination of server name, channel name, _id of mongodb document. instead use _id of ES. This way we don't have to generate permalinks because _id of ES is created for each mongodb document indexed and is unique by default. Also, it's retrieval is also fast using this endpoint: http://localhost:9200/channel_logs/log/{_id of ES}.

After we have done retrieving a particular permalink chat log, we can use date from the retrieved document to filter all chats for that particular date and highlight our permalink chat log when displaying them.

What do you say?

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

No branches or pull requests

3 participants