elastic / elastic/app-search-javascript

Disjunctive facets may break when used with signed search keys

Open
#25 13 comments 0 reactions 4 assignees Claimed by @richkuz View on GitHub
Dominant language
JavaScript
Stars
67
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Hello! I'm having trouble to make disjunctive facets work with signed search keys.

I think it's related to this: https://github.com/elastic/search-ui/issues/347

On this [line](https://github.com/elastic/app-search-javascript/blob/master/src/client.js#L174), I see that we are cleaning up request filters, but on my case filters are still sent this way:
![Screenshot from 2020-06-02 11-34-24](https://user-images.githubusercontent.com/10077439/83675246-16e22280-a5af-11ea-9b8d-bf176cc4d526.png)

Which seems to cause some kind of issue with AppSearch using signed search keys.
```
"alerts":[{"code":5001,"message":"Degraded search results","link":"https://swiftype.com/documentation/app-search/alerts#5001"}]
```

What I tried:
* If I remove filters on that request **it works** even with a signed search key
* Also if I change the signed search key to a normal search key, **it also works**.

**One last thing**
My search key only applies one filter:
![Screenshot from 2020-06-03 15-32-39](https://user-images.githubusercontent.com/10077439/83675497-7f310400-a5af-11ea-9931-1492dd39994f.png)

Any help is much appreciated!!
Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.