create solr_index via REST-endpoint & update documentation (was: The solr_index field primary key "id" is not auto incrementing)
epugh opened this issue · comments
Eric Pugh commented
The solr_index
field has the primary key id
, however it is not auto incrementing. When you follow the instructions in the README, you don't insert an id, which causes SMUI ui to report an error.
Changing
INSERT INTO solr_index (name, description) VALUES ('core_name1', 'Solr Search Index/Core');
to
INSERT INTO solr_index (id, name, description) VALUES (1, 'core_name1', 'Solr Search Index/Core');
fixes it. However, should the ID field be autoincrementing?
pbartusch commented
thanks @epugh ,
to make SMUI compatible to standard SQL, I removed auto_increment
and made id
s GUIDs. SMUI is used on top of several DBMS installations rights now (HSQL, mariaDB / mySQL, Postgres), so the id
definition should be fine as is.
But I'll definitively check the documentation here and will provide a REST-endpoint to create the solr_index
entities, so that a proper interface is provided here.