I am using Search API for my drupal 8 website, after indexeing some fields (interested in entity reference type fileds), in the database I can see that my field field_name:entity:title gets trimmed, as in the schema this field is of type varchar(30). That's why I use title in search bar I don't get related content back. But if I use the trimmed version of the title then the related content is returned. My question: is there a way to increase the column size in the search_api_db_database_index?


What database is it? MySQL? If so, log in to the database and use the MySQL command ALTER TABLE.

ALTER TABLE tablename MODIFY columnname VARCHAR(100);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy