Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello
I have a content type with field type "Entity Reference"
After the last update I have problems when searching this field.The query returns nothing.
I think there are problems with indexing .
After downgrade + reindex all are okay.
Thanks
Comments
Comment #1
drunken monkeyIs this still a problem?
If so, please provide more information, this is really not enough.
Specifically, what are you doing, and what happens? You have a filter on this field, and if the filter is present the search result is always empty? Did you try reindexing? Can you look into the database, table
search_api_db_INDEXID_FIELD
(or possibly without the_FIELD
suffix, but in a columnFIELD
) and see what it contains?Comment #2
mec_muc CreditAttribution: mec_muc commentedI don't know if it is exactly the same situation, but I also don't get results when searching for fields of a referenced entity.
I added a related field "application >> category" (from taxonomy field "category" of referenced entity "application"). The facet is working and I can display the field in the view, but a fulltext search with a category name doesn't show anything.
With 7.x-1.5 I got a PDO-exception (https://www.drupal.org/node/2566329).
With 1.4 there is no exception, but also no Result.
Someone else has a quite similar situation here:
http://drupal.stackexchange.com/questions/150307/can-i-search-an-entity-...
Comment #3
mariusm CreditAttribution: mariusm commentedI hope I remember correctly.
I have a view with facet.
When filtered by facet view returns nothing
In Version: 7.x-1.15+3-dev it's ok
I have not tested the latest version.
Thanks
Comment #4
mariusm CreditAttribution: mariusm commentedI think I added
https://www.drupal.org/files/issues/2110315-39--empty_entity_filters.patch
Comment #5
drunken monkeyDid you also index the category name as fulltext? Or how specifically are things indexed (fields and types)?
Also, have you tried with the latest dev versions of this module and the Search API?
@ mariusm: So this is fixed for you in the latest dev, as far as you know?