The question has come out above. Although it is unresolved: https://www.drupal.org/node/2616592

----------------------

I do not know what to do...

Can you think why search api do not work using two search fields along with the filters? If I use only one search field, it does work.

If you ever has a similar problem emerged ...

Examples:
- With one search field, is ok:
sportnlife.club/buscador/profesional-centro-privado-salud-deporte/especialidades/Obesidad?nombre=&ubicacion=madrid&especialidad=

- With two search field, do not work:
sportnlife.club/buscador/profesional-centro-privado-salud-deporte/especialidades/Obesidad?nombre=rosal&ubicacion=madrid&especialidad=

The text comes out as a result "No results behavior", but really if there are data

Thanks!

Comments

rafaeldelrosal created an issue. See original summary.

rafaeldelrosal’s picture

-

rafaeldelrosal’s picture

Title: more than one exposed filter in view api search not work fine with facets » Problems with exposed filter in view api search and facets
Issue summary: View changes
StatusFileSize
new603.26 KB
new47.68 KB
new49.02 KB
new50.3 KB
rafaeldelrosal’s picture

Issue summary: View changes
rafaeldelrosal’s picture

I found this comment in drupal.org/node/2616592:

"Based on the documentation provided for SearchApiQueryInterface->execute(), I expect that $results['results'] should be provided (if even just as an empty array). Specifically, "Additional metadata may be returned in other keys. Only 'result count' and 'result' always have to be set, all other entries are optional."
You're right, that's definitely a bug – see #2632426: Always include a "results" key in search results.

However, this can only occur when there are actually no results, so it doesn't really help with your problem. Could you please provide some details about your setup?

- How are the used Search API fields configured (fields used for the filter(s) and facet)?
- How exactly are the filters on your view set up?
- What search backend are you using, Solr, DB, Elasticsearch, … ?"

I'll try

rafaeldelrosal’s picture

Component: Usability » Code
Category: Support request » Bug report
Issue summary: View changes
Status: Active » Closed (duplicate)

The question has come out above. Although it is unresolved: https://www.drupal.org/node/2616592