Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7882

Schemaless mode does not work with DIH

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jmlucjav jmlucjav
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment