: Here is the stack trace what exactly does your fl param look like when you get this error? and what exactly are the field/fieldType declarations for each of the fields in your fl?
Because if i'm reading this correctly, Solr thinks you are trying to include in the response the results of a function on your store_slug field, ie... fl=foo, bar, baz, somefunction(store_slug) ...it's possible there is a bug in the parsing code -- it includes some huersitics to deal with the posibility of atypical field names that might look like function names, but it shouldn't get confused by a field name as simple sa "store_slug" which leads me to believe something earlier in the fl list is confusing it. (Details really matter. When you only give us part of the information -- ie: "..." in your solrconfig, a one line error message instead of hte full stack trace -- and we have to ask lots of follow up questions to get the basic info about what/how you got an error, it really makes it hard to help diagnose problems) : Oct 3, 2012 3:07:38 PM org.apache.solr.common.SolrException log : SEVERE: org.apache.solr.common.SolrException: can not use FieldCache on : multivalued field: store_slug : at : org.apache.solr.schema.SchemaField.checkFieldCacheSource(SchemaField.java:174) : at org.apache.solr.schema.StrField.getValueSource(StrField.java:44) : at : org.apache.solr.search.FunctionQParser.parseValueSource(FunctionQParser.java:376) : at org.apache.solr.search.FunctionQParser.parse(FunctionQParser.java:70) : at org.apache.solr.search.QParser.getQuery(QParser.java:145) : at org.apache.solr.search.ReturnFields.add(ReturnFields.java:289) : at : org.apache.solr.search.ReturnFields.parseFieldList(ReturnFields.java:115) : at org.apache.solr.search.ReturnFields.<init>(ReturnFields.java:101) : at org.apache.solr.search.ReturnFields.<init>(ReturnFields.java:77) : at : org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:97) : at : org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:185) : at : org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) : at org.apache.solr.core.SolrCore.execute(SolrCore.java:1656) : at : org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:454) : at : org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:275) : at : org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) : at : org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) : at : org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) : at : org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) : at : org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) : at : org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) : at : org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) : at : org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) : at : org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) : at : org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) : at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) : at java.lang.Thread.run(Thread.java:662) : : Il 02/10/12 19:40, Chris Hostetter ha scritto: : > : I'm also using that field for a facet: : > : > Hmmm... that still doesn't make sense. faceting can use FieldCache, but : > it will check if ht field is mutivalued to decide if/when/how to do this. : > : > There's nothing else in your requestHandler config that would suggest why : > you might get this error. : > : > can you please provide more details about the error you are getting -- in : > particular: the completley stack trace from the server logs. that should : > help us itendify the code path leading to the problem. : > : > : > : : > : |<requestHandler name="mytype" class="solr.SearchHandler" > : > : <lst name="defaults"> : > : <str name="defType">dismax</str> : > : <str name="echoParams">explicit</str> : > : <float name="tie">1</float> : > : <str name="qf"> : > : many field but not store_slug : > : </str> : > : <str name="pf"> : > : |many field but not store_slug||| : > : </str> <str name="fl"> : > : ..., store_slug : > : </str> : > : <str name="mm"><![CDATA[1<100% 5<80%]]></str> : > : <int name="qs">2</int> : > : <int name="ps">2</int> : > : <str name="q.alt">*:*</str> : > : <str name="spellcheck.dictionary">default</str> : > : <str name="spellcheck">true</str> : > : <str name="spellcheck.extendedResults">true</str> : > : <str name="spellcheck.count">10</str> : > : <str name="spellcheck.collate">true</str> <!-- Facet --> : > : <str name="facet">true</str> : > : <str name="facet.mincount">1</str> : > : <str name="facet.pivot.mincount">0</str> : > : <str name="facet.sort">count</str> : > : ... : > : <str name="facet.field">store_slug</str> : > : ... : > : <str name="hl">false</str> : > : </lst> : > : <arr name="last-components"> : > : <str>spellcheck</str> : > : </arr> : > : : > : </requestHandler>| : > : : > : : > : Il 01/10/12 18:34, Erik Hatcher ha scritto: : > : > How is your request handler defined? Using store_slug for anything but : > fl? : > : > : > : > Erik : > : > : > : > On Oct 1, 2012, at 10:51,"giovanni.bricc...@banzai.it" : > : > <giovanni.bricc...@banzai.it> wrote: : > : > : > : > > Hello, : > : > > : > : > > I would like to put a multivalued field into a qt definition as output : > : > > field. to do this I edit the current solrconfig.xml definition and add : > the : > : > > field in the fl specification. : > : > > : > : > > Unexpectedly when I do the query q=*:*&qt=mytype I get the error : > : > > : > : > > <str name="msg"> : > : > > can not use FieldCache on multivalued field: store_slug : > : > > </str> : > : > > : > : > > But if I instead run the query : > : > > : > : > > : > http://src-eprice-dev:8080/solr/0/select/?q=*:*&qt=mytype&fl=otherfield,mymultivaluedfiled : > : > > : > : > > I don't get the error : > : > > : > : > > Have you got any suggestions? : > : > > : > : > > I'm using solr 4 beta : > : > > : > : > > solr-spec 4.0.0.2012.08.06.22.50.47 : > : > > lucene-impl 4.0.0-BETA 1370099 : > : > > : > : > > : > : > > Giovanni : > : : > : : > : -- : > : : > : : > : Giovanni Bricconi : > : : > : Banzai Consulting : > : cell. 348 7283865 : > : ufficio 02 00643839 : > : via Gian Battista Vico 42 : > : 20132 Milano (MI) : > : : > : : > : : > : : > : > -Hoss : : : -- : : : Giovanni Bricconi : : Banzai Consulting : cell. 348 7283865 : ufficio 02 00643839 : via Gian Battista Vico 42 : 20132 Milano (MI) : -Hoss