Sorry for the lack of details.

It's all clear in my head.. :)

We checked out the head revision from the 3.x branch a few weeks ago (https://svn.apache.org/repos/asf/lucene/dev/branches/branch_3x/). We picked up r1058326.

We upgraded from a previous checkout (r960098). I am using our customized schema.xml and the solrconfig.xml from the old revision with the new checkout.

After upgrading I just copied the data folders from each core into the new checkout (hoping I wouldn't have to re-index the content, as this takes days). Everything seems to work fine, except that now I can't get the score to return.

The stack trace is attached. I also saw this warning in the logs not sure exactly what it's talking about:

Feb 3, 2011 8:14:10 PM org.apache.solr.core.Config getLuceneVersion
WARNING: the luceneMatchVersion is not specified, defaulting to LUCENE_24 emulation. You should at some point declare and reindex to at least 3.0, because 2.4 emulation is deprecated and will be removed in 4.0. This parameter will be mandatory in 4.0.

Here is my request handler, the actual fields here are different than what is in mine, but I'm a little uncomfortable publishing how our companies search service works to the world:

<requestHandler name="standard" class="solr.SearchHandler" default="true">
<lst name="defaults">
<str name="echoParams">explicit</str>
<str name="defType">edismax</str>
<bool name="tv">true</bool>
<!-- standard field to query on -->
<str name="qf">field_a^2 field_b^2 field_c^4 </str>

<!-- automatic phrase boosting! -->
<str name="pf">field_d^10</str>

<!-- boost function -->
<!--
we'll comment this out for now becuase we're passing it to solr as a paramter. Once we finalize the exact function we should move it here and take it out of the
                query string.
            -->
<!--<str name="bf">log(linear(field_e,0.001,1))^10</str>-->
<str name="tie">0.1</str>
</lst>
<arr name="last-components">
<str>tvComponent</str>
</arr>
</requestHandler>

Anyway  Hopefully this is enough info, let me know if you need more.

Jed.





On 02/03/2011 10:29 PM, Chris Hostetter wrote:
: I was working on an checkout of the 3.x branch from about 6 months ago.
: Everything was working pretty well, but we decided that we should update and
: get what was at the head.  However after upgrading, I am now getting this

FWIW: please be specific.  "head" of what? the 3x branch? or trunk?  what
revision in svn does that corrispond to? (the "svnversion" command will
tell you)

: HTTP ERROR 400 undefined field: *
:
: If I clear the fl parameter (default is set to *, score) then it works fine
: with one big problem, no score data.  If I try and set fl=score I get the same
: error except it says undefined field: score?!
:
: This works great in the older version, what changed?  I've googled for about
: an hour now and I can't seem to find anything.

i can't reproduce this using either trunk (r1067044) or 3x (r1067045)

all of these queries work just fine...

        http://localhost:8983/solr/select/?q=*
        http://localhost:8983/solr/select/?q=solr&fl=*,score
        http://localhost:8983/solr/select/?q=solr&fl=score
        http://localhost:8983/solr/select/?q=solr

...you'll have to proivde us with a *lot* more details to help understand
why you might be getting an error (like: what your configs look like, what
the request looks like, what the full stack trace of your error is in the
logs, etc...)




-Hoss

 844 Feb 3, 2011 8:16:58 PM org.apache.solr.core.SolrCore execute
 845 INFO: [music] webapp=/solr path=/select params={explainOther=&fl=*,score&indent=on&start=0&q=test&hl.fl=&qt=standard&wt=standard&fq=&version=2.2&rows=10} hits=2201 status=400 QTime=143
 846 Feb 3, 2011 8:17:00 PM org.apache.solr.core.SolrCore execute
 847 INFO: [rovi] webapp=/solr path=/replication params={command=indexversion&wt=javabin} status=0 QTime=0
 848 Feb 3, 2011 8:17:00 PM org.apache.solr.core.SolrCore execute
 849 INFO: [rovi] webapp=/solr path=/replication params={command=filelist&wt=javabin&indexversion=1277332208072} status=0 QTime=0
 850 Feb 3, 2011 8:17:00 PM org.apache.solr.core.SolrCore execute
 851 INFO: [rovi] webapp=/solr path=/replication params={command=indexversion&wt=javabin} status=0 QTime=0
 852 Feb 3, 2011 8:17:09 PM org.apache.solr.common.SolrException log
 853 SEVERE: org.apache.solr.common.SolrException: undefined field: score
 854   at org.apache.solr.handler.component.TermVectorComponent.process(TermVectorComponent.java:142)
 855   at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
 856   at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
 857   at org.apache.solr.core.SolrCore.execute(SolrCore.java:1357)
 858   at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:341)
 859   at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:244)
 860   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
 861   at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
 862   at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 863   at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
 864   at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
 865   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
 866   at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
 867   at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
 868   at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 869   at org.mortbay.jetty.Server.handle(Server.java:326)
 870   at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
 871   at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
 872   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
 873   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
 874   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
 875   at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
 876   at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

Reply via email to