This message was deleted.
# community-help
s
This message was deleted.
k
You mean disable returning the highlighted value of the facet in the response?
g
yep
k
It's not possible to disable that.
g
Does using
facet_by
imply having the highlighted field? In case there is no facet_query, the highlighted field and the value field will be duplicated would show the same value in the response, correct?
k
Highlights only occur when facet query is used
g
Here is my query
Copy code
{
  "searches": [
    {
      "collection": "warehouses",
      "query_by": "name",
      "facet_by": "categories.lvl1",
      "q": "",
      "per_page": 0
    }
  ]
}
And here is what I get
Copy code
{
	"results": [
		{
			"facet_counts": [
				{
					"counts": [
						{
							"count": 13,
							"highlighted": "Aliments > Viande",
							"value": "Aliments > Viande"
						},
k
Right, I meant the mark tags appear only when there is facet query. Otherwise highlight will be identical to actual value.
g
Ok got it 👍 Hope we will be able to just disable highlight as we can do on the fields
k
Do you have a specific reason to do that? Facet fields are generally very small in length and the response is compressed so there will hardly be any difference.
g
It is to avoid any formatting process that won't be used at all. Also In my case the counts array size is almost multiply by 2 to indicate the same value. Lastly I would say for clarity when the developper read the response
👍 1