jdbc - How to import data into Apache Solr index from LDAP -
i have ldap-server contains large set of user data , import apache solr index. question not whether idea or not (as discussed here). need kind of architecture 1 of our production systems depends on solr index of our ldap data.
i'm considering different options so, i'm not sure 1 should preferred:
option 1: use apache solr dataimporthandler:
this seems straight forward solr way of doing so. unfortunately there not seem datasource available work ldap.
i tried combine jdbcdatasource jdbc-ldap-bridge. in theory might work driver looks quite dated (latest version 2007).
another option might write custom ldapdatasource using of ldap-libraries java (probably spring ldap, directly via jndi or similar?).
option 2: build custom feeder:
another option might write standalone service/script bridges between 2 services. feels bit reinventing wheel.
option 3: haven't thought of yet:
maybe there additional options here haven't discovered yet.
solved writing custom ldap datasource solr dataimporthandler.
it's not hard sounds. jdbcdatasource can used template writing custom datasource, have rewrite 1 java-class ldap protocol.
for accessing ldap-client there numerous options, such plain jndi, unboundid ldap sdk, apache ldap api, opendj ldap sdk or openldap jldap (there more had @ those).
i went unboundid ldap due documented api , full support ldapv3.
afterwards matter of referencing datasource data-config.xml.
a nice side-effect of setup is, can use goodies solr dataimporthandler provides while indexing ldap server (entity processors , transformers). makes easy map data structure between ldap , solr index.
Comments
Post a Comment