Unfortunately there currently isn't a way to split a field. But this would be nice functionality to add.
The approach would be to an add a split operation that would be used by the select() function. It would look like this: select(jdbc(...), split(fieldA, delim=","), ...) This would make a good jira issue. Joel Bernstein http://joelsolr.blogspot.com/ On Fri, Sep 16, 2016 at 11:03 AM, Mike Thomsen <mikerthom...@gmail.com> wrote: > Read this article and thought it could be interesting as a way to do > ingestion: > > https://dzone.com/articles/solr-streaming-expressions- > for-collection-auto-upd-1 > > Example from the article: > > daemon(id="12345", > > runInterval="60000", > > update(users, > > batchSize=10, > > jdbc(connection="jdbc:mysql://localhost/users?user=root&password=solr", > sql="SELECT id, name FROM users", sort="id asc", > driver="com.mysql.jdbc.Driver") > > ) > > What's the best way to handle a multivalue field using this API? Is > there a way to tokenize something returned in a database field? > > Thanks, > > Mike >