Multiple authors are being indexed/faceted as a comma separated string instead of separate items.

CommentFileSizeAuthor
caadbche.png52.83 KBjacobsanford

Comments

jacobsanford’s picture

Status: Active » Reviewed & tested by the community

144717fb8f79726fcb05190709afa5d4c6510d52 seems to fix this.

St_B’s picture

Hi Jacob,
Now authors are well indexed, one item per author. But I have now a problem that I have not with the first version of the biblio_search_api_module :-(
Only 89/169 items have been indexed. The log give those messages :

"SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1"

"Warning : strlen() expects parameter 1 to be string, array given dans SearchApiDbService->convert() (ligne 751 dans /var/www/html/ao/sites/all/modules/search_api_db/service.inc)."

"SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 'fr', '3')' at line 1"

Can you figure out a solution ?

jacobsanford’s picture

Status: Reviewed & tested by the community » Needs work

It seems the search_api does not allow lists coming back, even typed properly in the entity def. I'm going to have to look into this further next week.

azin’s picture

@JacobSanford on biblio Authors, Keywords and Type there is an open issue here: https://drupal.org/node/1903776#comment-8303431

St_B’s picture

Hi Jacob,
Were you able to work on this issue, or maybe not yet ? Do you think the problem can be solved "easily" or not ?

jacobsanford’s picture

Status: Needs work » Reviewed & tested by the community

Hi St_B,

The HEAD commit, tagged as 7.x-1.02 should fix this issue finally!

St_B’s picture

it seems to work indeed, thank you very much :-)

St_B’s picture

hum I m afraid there is the same problem with keywords field :-/