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

/browse request handler fails in example if you don't specify a field in the query with "no default specified via 'df' param"

    XMLWordPrintableJSON

    Details

      Description

      If you try using the stock /browse request handler and don't specify a field in the search, you get the following stack (partial):

      SEVERE: org.apache.solr.common.SolrException: no field name specified in query and no default specified via 'df' param
      at org.apache.solr.search.SolrQueryParser.checkNullField(SolrQueryParser.java:136)
      at org.apache.solr.search.SolrQueryParser.getFieldQuery(SolrQueryParser.java:154)
      at org.apache.lucene.queryparser.classic.QueryParserBase.handleBareTokenQuery(QueryParserBase.java:1063)
      at org.apache.lucene.queryparser.classic.QueryParser.Term(QueryParser.java:350)
      .
      .
      .

        Attachments

        1. SOLR-3646.patch
          0.5 kB
          Erick Erickson

          Issue Links

            Activity

              People

              • Assignee:
                erickerickson Erick Erickson
                Reporter:
                erickerickson Erick Erickson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified