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

dynamic field name with spaces causes error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: None
    • Labels:
      None

      Description

      Stumbled into this bug. I have a dynamic field "meta_set_*" When I add the field: "meta_set_NoData Value" and try to open luke, I get this exception:

      May 15, 2009 3:42:06 PM org.apache.solr.common.SolrException log
      SEVERE: org.apache.solr.common.SolrException: undefined field Value
      at org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1132)
      at org.apache.solr.schema.IndexSchema.getFieldType(IndexSchema.java:1094)
      at org.apache.solr.search.SolrQueryParser.getRangeQuery(SolrQueryParser.java:121)
      at org.apache.lucene.queryParser.QueryParser.Term(QueryParser.java:1514)
      at org.apache.lucene.queryParser.QueryParser.Clause(QueryParser.java:1349)
      at org.apache.lucene.queryParser.QueryParser.Query(QueryParser.java:1306)
      at org.apache.lucene.queryParser.QueryParser.TopLevelQuery(QueryParser.java:1266)
      at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:172)
      at org.apache.solr.handler.admin.LukeRequestHandler.getIndexedFieldsInfo(LukeRequestHandler.java:310)
      at org.apache.solr.handler.admin.LukeRequestHandler.handleRequestBody(LukeRequestHandler.java:147)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
      at org.apache.solr.core.SolrCore.execute(SolrCore.java:1330)

      note the field is "meta_set_gdal_NoData Value" not "Value"

      I think the query parser is grabbing it...

        Attachments

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              ryantxu Ryan McKinley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: