I have a solr search without translate just english language.
In addResults function I have a Fields entity with an empty result with getCombinedPropertyPath method on search_api_language entry.
And addResults return an array with an empty key who launch an error in ResultRow function ( module view )

CommentFileSizeAuthor
#2 searchApiQuery.patch483 bytesNijiAlexandreHubert

Comments

NijiAlexandreHubert created an issue. See original summary.

NijiAlexandreHubert’s picture

StatusFileSize
new483 bytes
drunken monkey’s picture

Project: Search API » Search API Solr
Component: General code » Code

That seems like a problem in the Solr module.
However, I'm pretty sure it's either known or already fixed. When using dev versions, such incompatibilities currently occur very frequently. For that reason, you're advised to only use compatible Alpha releases (or be prepared for the consequences).

A new set of Alpha releases is however scheduled for today or tomorrow.

PS: It seems you (like many others – it's really easy to misinterpret) are confused by the "Issue tags" field. As the guidelines state, they aren't meant for free text tags related to the issue, but only for specific categorization purposes, usually by module maintainers.
So, if you aren't sure your current usage is correct, please just leave the field empty.

mkalkbrenner’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: -empty, -key

Does the error still occur if you use Search API 8.x-1.0-alpha16 and the latest dev of Search API Solr Search?

divined’s picture

-        if ($field->getValues()) {
+        if ($key = $field->getCombinedPropertyPath() && $field->getValues()) {
           $values[$key] = $field->getValues();
         }
mkalkbrenner’s picture

@divined:
Please post a patch. I can't see which file you're addressing.

divined’s picture

@mkalkbrenner:

Just a small perfomance fix for the #1 patch.

Solr return two fields: search_api_language and search_api_datasource, which not have a definition data.

mkalkbrenner’s picture

Solr return two fields: search_api_language and search_api_datasource, which not have a definition data.

I don't think that this is still the case for the latest dev version. Can you verify this?

divined’s picture

Confirm: no problem in dev version.

mkalkbrenner’s picture

Status: Postponed (maintainer needs more info) » Fixed
divined’s picture

Version: 8.x-1.x-dev » 8.x-1.0-alpha4

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.