Solr HTTP error: OK (400) Would appreciate some help
-
The full message is:
Solr HTTP error: OK (400) {“error”:{“metadata”:[“error-class”,”org.apache.solr.common.SolrException”,”root-error-class”,”org.apache.solr.common.SolrException”],”msg”:”undefined field text”,”code”:400}}
But everything else seems fine.
Solr 6.5.1.
Wpsolr 6 config files
Connecting to indexes works fine
Sending data from wpsolr to solr works fine
Data is present in Solr
Data seems fineSearching on clean basis wordpress site returns above error.
Any ideas?
Kind regards
-
hello,
Your index is clearly missing our config files.
Please follow the step by step procedure:
https://www.wpsolr.com/guide/configuration-step-by-step-schematic/configure-your-indexes/create-configure-apache-solr-index/- This reply was modified 7 years, 7 months ago by WPSolr free.
Thanks for you quick reply.
This is what I did and I thought this to be correct:
sudo su – solr -c “/opt/solr/bin/solr create -c wpsolr -n data_driven_schema_configs”
wget -O wpsolr_config.zip https://www.wpsolr.com/wp-content/uploads/2016/09/wpsolr-v5-v6.zip
unzip wpsolr_config.zip
cp schema.xml /opt/solr-6.5.1/server/solr/configsets/data_driven_schema_configs/conf/
cp solrconfig.xml /opt/solr-6.5.1/server/solr/configsets/data_driven_schema_configs/conf/
cp elevate.xml /opt/solr-6.5.1/server/solr/configsets/data_driven_schema_configs/conf/
cp stopwords.txt /opt/solr-6.5.1/server/solr/configsets/data_driven_schema_configs/conf/nano /opt/solr-6.5.1/server/solr/configsets/data_driven_schema_configs/conf/solrconfig.xml
I changed LuceneMatchVersion to 6.5.1
Doens’t the fact that I can see all the data in solr mean the config files are in the right place?
- This reply was modified 7 years, 7 months ago by japhys.
Did you restart Solr, or reload the index ?
I did both.
I just reloaded again and looked in logs, it says:
RequestHandlerBase org.apache.solr.common.SolrException: undefined field text
org.apache.solr.common.SolrException: undefined field text
at org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1308)
at org.apache.solr.schema.IndexSchema.getFieldType(IndexSchema.java:1260)
at org.apache.solr.parser.SolrQueryParserBase.getFuzzyQuery(SolrQueryParserBase.java:1127)
at org.apache.solr.parser.SolrQueryParserBase.handleBareTokenQuery(SolrQueryParserBase.java:694)
at org.apache.solr.parser.QueryParser.Term(QueryParser.java:421)
at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:278)
at org.apache.solr.parser.QueryParser.Query(QueryParser.java:162)
at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:282)
at org.apache.solr.parser.QueryParser.Query(QueryParser.java:162)
at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:131)
at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:211)
at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:53)
at org.apache.solr.search.QParser.getQuery(QParser.java:168)
at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:160)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:269)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:173)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:2440)
at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:723)
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:529)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:347)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:298)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1691)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:534)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:748)I’ve done all the setup on a 6.5.1 Solr instance, to be sure. Works fine.
Can you clear your logs, and see what happens again while restarting your Solr ?
thanks very much for your effort!
Did clear the logs. Double checked everything. Still the same error. It’s driving me nuts. I don’t want to give up though so I will do a clean install of Solr, WordPress and WPsolr this weekend on a new LAMP stack.
Ultimately I would like to start using WPsolr on a bunch of WordPress sites (and use Solr modules on our corporate Drupal sites as well). These are mostly managed servers so I only have to give them a ‘Go’, however I would like to play around with it myself so I have a basic understanding of what it is capable of.
Ps we are using GSA on Drupal now which in my opinion is a lot of money for something Solr can do as well.
Will update this post this weekend
- This reply was modified 7 years, 7 months ago by japhys.
I’ve noticed you installed SolrCloud. Perhaps just install Solr.
- This reply was modified 7 years, 7 months ago by WPSolr free.
Thanks will do, will follow the guide in your link step by step
Might have to give up after all ??
Clean and basic LAMP, WP and Solr installations. Followed this Guide: https://guides.wp-bullet.com/install-solr-ubuntu-14-04-for-faster-wordpress-search/
Solr is running, wp is connected to Solr, data is being send.
But again:
Solr HTTP error: OK (400) {“error”:{“metadata”:[“error-class”,”org.apache.solr.common.SolrException”,”root-error-class”,”org.apache.solr.common.SolrException”],”msg”:”undefined field text”,”code”:400}}
- The topic ‘Solr HTTP error: OK (400) Would appreciate some help’ is closed to new replies.