Solr
  1. Solr
  2. SOLR-929

error in admin interface for dynamicField name="*" type="ignored"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Component/s: web gui
    • Labels:
      None
    • Environment:

      java version "1.5.0_16", Mac OS 10.5.5, Jetty example server. Also see the same bug on linux with tomcat.

      Description

      There appears to be an error in the admin interface (/solr/admin/schema.jsp) when using a '*' field in a schema. In the example
      schema.xml, there is a commented out sample:

       
        <!-- uncomment the following to ignore any fields that don't
      already match an existing
             field name or dynamic field, rather than reporting them as an error.
             alternately, change the type="ignored" to some other type e.g.
      "text" if you want
             unknown fields indexed and/or stored by default -->
        <!--dynamicField name="*" type="ignored" /-->
      

      We have this un-commented, and in the schema browser via the admin interface I see that all non-dynamic fields get a type of "ignored".

      for example, I see this in the Solr admin interface:

      Field: uid
      Dynamically Created From Pattern: *
      Field Type: ignored

      though the field definition is:

       
        <field name="uid"  type="integer" indexed="true" stored="true"/>
      
      1. schema.xml
        19 kB
        Peter Wolanin
      2. SOLR-929.patch
        2 kB
        Koji Sekiguchi
      3. Solr-admin-page.jpg
        93 kB
        Peter Wolanin

        Activity

        Hide
        Koji Sekiguchi added a comment -

        Peter,
        I've tried but couldn't reproduce the problem, using trunk and Solr 1.3 example...

        Show
        Koji Sekiguchi added a comment - Peter, I've tried but couldn't reproduce the problem, using trunk and Solr 1.3 example...
        Hide
        Peter Wolanin added a comment -

        I am attaching a screen shot (using solr trunk and Jetty) and our schema.xml. I have seen this bug consistently, and I thought Yonik had reproduced it.

        Show
        Peter Wolanin added a comment - I am attaching a screen shot (using solr trunk and Jetty) and our schema.xml. I have seen this bug consistently, and I thought Yonik had reproduced it.
        Hide
        Peter Wolanin added a comment -

        Screen shot showing schema browser bug

        Show
        Peter Wolanin added a comment - Screen shot showing schema browser bug
        Hide
        Peter Wolanin added a comment -

        This schema.xml shows the problem.

        Show
        Peter Wolanin added a comment - This schema.xml shows the problem.
        Hide
        Koji Sekiguchi added a comment -

        Thank you for the input. Now I can reproduce the problem with example after I indexed data. I'd like to see it in detail in weekend if I have time.

        Show
        Koji Sekiguchi added a comment - Thank you for the input. Now I can reproduce the problem with example after I indexed data. I'd like to see it in detail in weekend if I have time.
        Hide
        Koji Sekiguchi added a comment -

        The bug is in LukeRequestHandler. "dynamicBase" should be returned only if the field is dynamic. The attached patch fixes this. I'll commit in a few days.

        Show
        Koji Sekiguchi added a comment - The bug is in LukeRequestHandler. "dynamicBase" should be returned only if the field is dynamic. The attached patch fixes this. I'll commit in a few days.
        Hide
        Koji Sekiguchi added a comment -

        Committed revision 771270.

        Show
        Koji Sekiguchi added a comment - Committed revision 771270.
        Hide
        Grant Ingersoll added a comment -

        Bulk close for Solr 1.4

        Show
        Grant Ingersoll added a comment - Bulk close for Solr 1.4

          People

          • Assignee:
            Koji Sekiguchi
            Reporter:
            Peter Wolanin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development