Re: ERROR 400 undefined field
Am 07.06.2012 09:55, schrieb sheethal shreedhar: http://localhost:8983/solr/select/?q=fruit&version=2.2&start=0&rows=10&indent=on I get HTTP ERROR 400 Problem accessing /solr/select/. Reason: undefined field text Look at your schema.xml. You'll find a line like this: text Replace "text" with a field that s defined somewhere in schema.xml. Or change your query to something with a field name like this: http://localhost:8983/solr/select/?q=somefield:fruit Or use the (e)dismax handler and configure it accordingly. See http://wiki.apache.org/solr/DisMaxRequestHandler. Greetings, Kuli
Re: HTTP ERROR 400 undefined field: *
here is the ticket: https://issues.apache.org/jira/browse/SOLR-2352 On 02/08/2011 11:27 AM, Jed Glazner wrote: So I re-indexed some of the content, but no dice. Per Hoss, I tried disabling the TVC and it worked great. We're not really using tvc right now since we made a decision to turn off highlighting for the moment, so this isn't a huge deal. I'll create a new jira issue. FYI here is my query from the logs: --this one breaks (undefined field) webapp=/solr path=/select params={explainOther=&fl=*,score&indent=on&start=0&q=bruce&hl.fl=&qt=standard&wt=standard&fq=&version=2.2&rows=10} hits=114 status=400 QTime=21 this one works: webapp=/solr path=/select params={explainOther=&indent=on&hl.fl=&wt=standard&version=2.2&rows=10&fl=*,score&start=0&q=bruce&tv=false&qt=standard&fq=} hits=128 status=0 QTime=48 Though i'm not sure why when the tvc is disabled there are more hits, but the qtime is slower. That's a different issue though, and something I can work though. Thanks for your help. On 02/07/2011 11:38 AM, Chris Hostetter wrote: : The stack trace is attached. I also saw this warning in the logs not sure From your attachment... 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) ...this is one of the key pieces of info that was missing from your earlier email: that you are using the TermVectorComponent. It's likely that something changed in the TVC on 3x between the two versions you were using and thta change freaks out now on "*" or "score" in the fl. you still haven't given us an example of the full URLs you are using that trigger this error. (it's posisble there is something slightly off in your syntax - we don't know because you haven't shown us) All in: this sounds like a newly introduced bug in TVC, please post the details into a new Jira issue. as to the warning you asked 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. if you look at the example configs on the 3x branch it should be explained. it's basically just a new "feature" that lets you specify which "quirks" of the underlying lucene code you want (so on upgrading you are in control of wether you eliminate old quirks or not) -Hoss
Re: HTTP ERROR 400 undefined field: *
So I re-indexed some of the content, but no dice. Per Hoss, I tried disabling the TVC and it worked great. We're not really using tvc right now since we made a decision to turn off highlighting for the moment, so this isn't a huge deal. I'll create a new jira issue. FYI here is my query from the logs: --this one breaks (undefined field) webapp=/solr path=/select params={explainOther=&fl=*,score&indent=on&start=0&q=bruce&hl.fl=&qt=standard&wt=standard&fq=&version=2.2&rows=10} hits=114 status=400 QTime=21 this one works: webapp=/solr path=/select params={explainOther=&indent=on&hl.fl=&wt=standard&version=2.2&rows=10&fl=*,score&start=0&q=bruce&tv=false&qt=standard&fq=} hits=128 status=0 QTime=48 Though i'm not sure why when the tvc is disabled there are more hits, but the qtime is slower. That's a different issue though, and something I can work though. Thanks for your help. On 02/07/2011 11:38 AM, Chris Hostetter wrote: : The stack trace is attached. I also saw this warning in the logs not sure From your attachment... 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) ...this is one of the key pieces of info that was missing from your earlier email: that you are using the TermVectorComponent. It's likely that something changed in the TVC on 3x between the two versions you were using and thta change freaks out now on "*" or "score" in the fl. you still haven't given us an example of the full URLs you are using that trigger this error. (it's posisble there is something slightly off in your syntax - we don't know because you haven't shown us) All in: this sounds like a newly introduced bug in TVC, please post the details into a new Jira issue. as to the warning you asked 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. if you look at the example configs on the 3x branch it should be explained. it's basically just a new "feature" that lets you specify which "quirks" of the underlying lucene code you want (so on upgrading you are in control of wether you eliminate old quirks or not) -Hoss
Re: HTTP ERROR 400 undefined field: *
: The stack trace is attached. I also saw this warning in the logs not sure >From your attachment... 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) ...this is one of the key pieces of info that was missing from your earlier email: that you are using the TermVectorComponent. It's likely that something changed in the TVC on 3x between the two versions you were using and thta change freaks out now on "*" or "score" in the fl. you still haven't given us an example of the full URLs you are using that trigger this error. (it's posisble there is something slightly off in your syntax - we don't know because you haven't shown us) All in: this sounds like a newly introduced bug in TVC, please post the details into a new Jira issue. as to the warning you asked 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. if you look at the example configs on the 3x branch it should be explained. it's basically just a new "feature" that lets you specify which "quirks" of the underlying lucene code you want (so on upgrading you are in control of wether you eliminate old quirks or not) -Hoss
Re: HTTP ERROR 400 undefined field: *
Thanks Otis, I'll give that a try. Jed. On 02/06/2011 08:06 PM, Otis Gospodnetic wrote: Yup, here it is, warning about needing to reindex: http://twitter.com/#!/lucene/status/28694113180192768 Otis Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ - Original Message From: Erick Erickson To: solr-user@lucene.apache.org Sent: Sun, February 6, 2011 9:43:00 AM Subject: Re: HTTP ERROR 400 undefined field: * I *think* that there was a post a while ago saying that if you were using trunk 3_x one of the recent changes required re-indexing, but don't quote me on that. Have you tried that? Best Erick On Fri, Feb 4, 2011 at 2:04 PM, Jed Glazner wrote: 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: explicit edismax true field_a^2 field_b^2 field_c^4 field_d^10 0.1 tvComponent 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
Re: HTTP ERROR 400 undefined field: *
Yup, here it is, warning about needing to reindex: http://twitter.com/#!/lucene/status/28694113180192768 Otis Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ - Original Message > From: Erick Erickson > To: solr-user@lucene.apache.org > Sent: Sun, February 6, 2011 9:43:00 AM > Subject: Re: HTTP ERROR 400 undefined field: * > > I *think* that there was a post a while ago saying that if you were > using trunk 3_x one of the recent changes required re-indexing, but don't > quote me on that. > Have you tried that? > > Best > Erick > > On Fri, Feb 4, 2011 at 2:04 PM, Jed Glazner >wrote: > > > 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: > > > > > > > > explicit > > edismax > > true > > > > field_a^2 field_b^2 field_c^4 > > > > > > field_d^10 > > > > > > > > > > 0.1 > > > > > > tvComponent > > > > > > > > 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 > >> > > > > >
Re: HTTP ERROR 400 undefined field: *
I *think* that there was a post a while ago saying that if you were using trunk 3_x one of the recent changes required re-indexing, but don't quote me on that. Have you tried that? Best Erick On Fri, Feb 4, 2011 at 2:04 PM, Jed Glazner wrote: > 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: > > > > explicit > edismax > true > > field_a^2 field_b^2 field_c^4 > > > field_d^10 > > > > > 0.1 > > > tvComponent > > > > 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 >> > >
Re: HTTP ERROR 400 undefined field: *
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: explicit edismax true field_a^2 field_b^2 field_c^4 field_d^10 0.1 tvComponent 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.ContextHandlerCollect
Re: HTTP ERROR 400 undefined field: *
: 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
Re: HTTP ERROR 400 undefined field: *
How you have upgraded ? are you changed every thing all jars ,data,config or any thing using from older version? - Thanx: Grijesh http://lucidimagination.com -- View this message in context: http://lucene.472066.n3.nabble.com/HTTP-ERROR-400-undefined-field-tp2417938p2421569.html Sent from the Solr - User mailing list archive at Nabble.com.
HTTP ERROR 400 undefined field: *
Hey Guys, 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 error through the admin: 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. Jed.