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

unexpected sow=false interaction with defaultSearchField

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      Came across this as part of SOLR-10264 test development, walkback extract shown below, will attach patch used to reproduce.

      [junit4]   1> cpoerschke debug: newFieldName=managed_en_field
      [junit4]   1> cpoerschke debug: query=managed_en_field:happy test
      [junit4]   2> 7417 INFO  (qtp45246903-42) [    x:collection1] o.a.s.c.S.Request [collection1]  webapp=/solr path=/select params={q=managed_en_field:happy+test&indent=on&sow=true&wt=xml} hits=1 status=0 QTime=21
      [junit4]   1> cpoerschke debug: newFieldName=managed_en_field sow=true
      [junit4]   1> cpoerschke debug: query=managed_en_field:happy test
      [junit4]   2> 7421 INFO  (qtp45246903-35) [    x:collection1] o.a.s.c.S.Request [collection1]  webapp=/solr path=/select params={q=managed_en_field:happy+test&indent=on&sow=true&wt=xml} hits=1 status=0 QTime=1
      [junit4]   1> cpoerschke debug: newFieldName=managed_en_field sow=false
      [junit4]   1> cpoerschke debug: query=managed_en_field:happy test
      [junit4]   2> 7424 ERROR (qtp45246903-40) [    x:collection1] o.a.s.h.RequestHandlerBase org.apache.solr.search.QueryParserConfigurationException: Field 'text': fieldAutoGenPhraseQueries == true is disallowed when sow/splitOnWhitespace == false
      [junit4]   2>        at org.apache.solr.parser.QueryParser.newFieldQuery(QueryParser.java:62)
      [junit4]   2>        at org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:953)
      [junit4]   2>        at org.apache.solr.parser.SolrQueryParserBase.handleBareTokenQuery(SolrQueryParserBase.java:692)
      [junit4]   2>        at org.apache.solr.parser.QueryParser.Term(QueryParser.java:424)
      [junit4]   2>        at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:281)
      [junit4]   2>        at org.apache.solr.parser.QueryParser.Query(QueryParser.java:225)
      [junit4]   2>        at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:134)
      [junit4]   2>        at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:212)
      [junit4]   2>        at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:53)
      [junit4]   2>        at org.apache.solr.search.QParser.getQuery(QParser.java:168)
      [junit4]   2>        at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:161)
      [junit4]   2>        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:268)
      [junit4]   2>        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:173)
      [junit4]   2>        at org.apache.solr.core.SolrCore.execute(SolrCore.java:2464)
      

      Attachments

        1. SOLR-10348.patch
          4 kB
          Christine Poerschke

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cpoerschke Christine Poerschke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: