[ https://issues.apache.org/jira/browse/SOLR-10348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15939270#comment-15939270 ]
Steve Rowe commented on SOLR-10348: ----------------------------------- The query {{managed_en_field:happy test}}, with default field = {{text}}, is interpreted by the standard query parser (and Lucene classic query parser) as {{managed_en_field:happy text:test}}. If you want {{test}} to also be against {{managed_en_field}}, you have to enclose both words in parens: {{managed_en_field:(happy test)}}. > unexpected sow=false interaction with defaultSearchField > -------------------------------------------------------- > > Key: SOLR-10348 > URL: https://issues.apache.org/jira/browse/SOLR-10348 > Project: Solr > Issue Type: Task > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Christine Poerschke > Priority: Minor > Attachments: SOLR-10348.patch > > > Came across this as part of SOLR-10264 test development, walkback extract > shown below, will attach patch used to reproduce. > {code} > [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) > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org