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

search highlights gives uuids instead of ... highlights #1106

Open
iamdey opened this issue Nov 22, 2018 · 1 comment
Open

search highlights gives uuids instead of ... highlights #1106

iamdey opened this issue Nov 22, 2018 · 1 comment

Comments

@iamdey
Copy link
Member

iamdey commented Nov 22, 2018

{
	"total": 2,
	"messages_hits": {
		"total": 0,
		"messages": []
	},
	"contact_hits": {
		"total": 2,
		"contacts": [{
			"id": "1bb147f7-385e-44a4-a480-d59069f1b19b",
			"score": 0,
			"highlights": {
				"user_id": ["\u003cem\u003e984375cc-37a4-4c30-ab20-82da3ef44917\u003c/em\u003e"]
			},
			"document": {
				"contact_id": "1bb147f7-385e-44a4-a480-d59069f1b19b",
				"date_insert": "2018-11-22T14:48:44.687Z",
				"date_update": "2018-11-22T14:48:44.687Z",
				"deleted": "0001-01-01T00:00:00Z",
				"user_id": "984375cc-37a4-4c30-ab20-82da3ef44917"
			}
		}, {
			"id": "ead42c55-3a90-4464-a8ea-3e03250c71b1",
			"score": 0,
			"highlights": {
				"user_id": ["\u003cem\u003e984375cc-37a4-4c30-ab20-82da3ef44917\u003c/em\u003e"]
			},
			"document": {
				"contact_id": "ead42c55-3a90-4464-a8ea-3e03250c71b1",
				"date_insert": "0001-01-01T00:00:00Z",
				"date_update": "0001-01-01T00:00:00Z",
				"deleted": "0001-01-01T00:00:00Z",
				"emails": [{
					"address": "azd",
					"email_id": "1e6ed91f-9bcf-4017-810d-2c0cf37b1d7d",
					"is_primary": false,
					"type": "other"
				}],
				"given_name": "dey",
				"title": "dey",
				"user_id": "984375cc-37a4-4c30-ab20-82da3ef44917"
			}
		}]
	}
}

same for messages and contacts: highlights are displayed on the client as it is in json

cf. #1099

@iamdey
Copy link
Member Author

iamdey commented Nov 22, 2018

notice the \u003cem\u003e that represent the <em> tag

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

1 participant