----------------------
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
Comment #2
rafaeldelrosal commented-
Comment #3
rafaeldelrosal commentedComment #4
rafaeldelrosal commentedComment #5
rafaeldelrosal commentedI 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
Comment #6
rafaeldelrosal commentedThe question has come out above. Although it is unresolved: https://www.drupal.org/node/2616592