You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "jmlucjav (JIRA)" <ji...@apache.org> on 2015/08/06 16:58:05 UTC

[jira] [Created] (SOLR-7882) Schemaless mode does not work with DIH

jmlucjav created SOLR-7882:
------------------------------

             Summary: Schemaless mode does not work with DIH
                 Key: SOLR-7882
                 URL: https://issues.apache.org/jira/browse/SOLR-7882
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler, Data-driven Schema
    Affects Versions: 5.2.1
            Reporter: jmlucjav


Schemaless mode does not work if you use DIH to index. This mode being most useful for prototyping, it makes sense to be able to use it with DIH, another great Solr tool that allows people to index some db content pretty fast. 

I imagine this also affects other sources DIH can handle, not just SQL.

The issue is DIH code does not add fields it does not know so far, so the new fields to be added don't read the URP that adds them. A small change in DocBuilder.java was enough to fix this for my use case, now all my fields returned by the sql query are later added to the schema just fine. 
I did not look in detail into multiValued fields, but maybe this small patch is enough for someone to look at it.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org