Closed (duplicate)
Project:
Data
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2015 at 08:20 UTC
Updated:
4 Jan 2016 at 23:31 UTC
Jump to comment: Most recent
I'm trying to apply a chain "nonDrupalTable -> Data (Declare an entity type based on this table) -> Database Search + Search API" to build the search index on this table.
When I create the index, I get the error:
"SearchApiException: Unknown index prodz. в функции SearchApiDbService->search() (line 1121 in /search_api_db/service.inc)"
And when I try build the index, I get the error:
"SearchApiException while updating the fields of index prodz on server local_database_search: Entity type TABLE NAME doesn't specify a type for the ID property. in SearchApiDbService->fieldsUpdated() (line 684 of modules/search_api_db/service.inc)."
Any idea?
Comments
Comment #1
drunken monkeyAs the error message states, it seems the entity property information the Data Entity module creates is incomplete.
As can be seen in its documentation, the
typekey is required for the property information returned inhook_entity_property_info(). The possible values can also be seen there. I would suggest just creating a simple mapping from the most common SQL data types to those types, and defaulting totext(ortoken) for all others.Moving to the appropriate project. Please just ask if there's anything unclear.
Comment #2
joachim commentedSee #2058895: Add 'type' definition for entity properties.