Solr
  1. Solr
  2. SOLR-2899

Custom DIH Functions in Delta-Query have null Context

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      We must use a custom fucntion in the deltaQuery, but the passed in Context is always null, preventing any variable resolution.
      In full-import mode behavior is correct.

      Looking into the sources showed that the Conext is used from a thread-local Context.CURRENT_CONTEXT.get(),
      wich is never set by (Context.CURRENT_CONTEXT.set()) for the Context created in DocBuilder.java:871

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Jens Zastrow
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development