lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom135 <t.latu...@itspree.pl>
Subject Re: Solandra - select query error
Date Thu, 15 Sep 2011 11:00:01 GMT
Hi Jake,

I was reproduce example of my error (commit release 3408a30):

1. I have used schema.xml from reuters-demo, with my fields definition:
.....
<fields>
   <field name="id" type="long" indexed="true" stored="true" required="true"
/> 
   <field name="text" type="text" indexed="true" stored="true"
termPositions="true"/>
   <field name="doma_type" type="long" indexed="true" stored="true"
required="true" />
   <field name="sentiment_type" type="long" indexed="true" stored="true"
required="true" />
   <field name="date_check" type="long" indexed="true" stored="true"
required="true" />
</fields>
<uniqueKey>id</uniqueKey>
<defaultSearchField>text</defaultSearchField>
.....

2. I have populated 10000 items with two iterations (5000) to index
"sampleIndex.sub"

3. Then I execute many selects to above index "sampleIndex.sub" with many
combinations queries:
QueryResponse r = client.query(combination query);

- doma_type:(2) AND sentiment_type:(1) AND text:(piwo nie może) --
combination query - ERROR
- doma_type:(2 1) AND sentiment_type:(1) AND text:(piwo nie może)
- doma_type:(3 2 1) AND sentiment_type:(1) AND text:(piwo nie może)
- doma_type:(3 2 1) AND sentiment_type:(1) AND text:(może)
- doma_type:(3 2 1) AND sentiment_type:(1) AND text:(piwo nie)
- etc. (all combinations of numbers 1 2 3 and words piwo nie może)

4. In results, I have received error for a combination query (one from
above). The error combination query is not repeatable. This error does not
always occur. If error does not occur, then try above steps again (selects
should be performed immediately after index/write data).

I may have a bad configuration for this situation (I have standard
configuration).

MY CONSOLE ERROR:
org.apache.solr.client.solrj.SolrServerException: Error executing query
	at
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:95)
	at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
	at com.its.bt.solandra.dao.PostDao.countPosts(PostDao.java:383)
	at com.its.bt.solandra.dao.PostDao.countPostsByTokens(PostDao.java:338)
	at com.its.bt.solandra.dao.ProjectDao.main(ProjectDao.java:42)
Caused by: org.apache.solr.common.SolrException: 4 
java.lang.ArrayIndexOutOfBoundsException: 4 	at
org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:310) 	at
org.apache.lucene.search.ConjunctionScorer.score(ConjunctionScorer.java:135) 
at org.apache.lucene.search.BooleanScorer2$2.score(BooleanScorer2.java:182) 
at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:309) 
at
org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:47)

at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:281) 
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:526) 	at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:320) 	at
org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1178) 
at
org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1066) 
at
org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:358) 
at
org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:258) 
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)

at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) 
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368) 	at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356) 
at solandra.SolandraDispatchFilter.execute(SolandraDispatchFilter.java:171) 
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252) 
at solandra.SolandraDispatchFilter.doFilter(SolandraDispatchFilter.java:137) 
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) 
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) 
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) 
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) 
at org.mortbay.jetty.Server.handle(Server.ja

4  java.lang.ArrayIndexOutOfBoundsException: 4 	at
org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:310) 	at
org.apache.lucene.search.ConjunctionScorer.score(ConjunctionScorer.java:135) 
at org.apache.lucene.search.BooleanScorer2$2.score(BooleanScorer2.java:182) 
at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:309) 
at
org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:47)

at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:281) 
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:526) 	at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:320) 	at
org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1178) 
at
org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1066) 
at
org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:358) 
at
org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:258) 
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)

at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) 
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368) 	at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356) 
at solandra.SolandraDispatchFilter.execute(SolandraDispatchFilter.java:171) 
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252) 
at solandra.SolandraDispatchFilter.doFilter(SolandraDispatchFilter.java:137) 
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) 
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) 
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) 
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) 
at org.mortbay.jetty.Server.handle(Server.ja

request:
http://127.0.0.1:8983/solandra/idxPosts.global/select?q=doma_type:(2) AND
sentiment_type:(0) AND text:(piwo nie może)&wt=javabin&version=2
	at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
	at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
	at
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
	... 4 more

=======================================

*JETTY/SOLR CONSOLE ERROR:*
ERROR 12:54:37,022 java.lang.ArrayIndexOutOfBoundsException: 4
	at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:310)
	at
org.apache.lucene.search.ConjunctionScorer.score(ConjunctionScorer.java:135)
	at org.apache.lucene.search.BooleanScorer2$2.score(BooleanScorer2.java:182)
	at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:309)
	at
org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:47)
	at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:281)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:526)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:320)
	at
org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1178)
	at
org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1066)
	at
org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:358)
	at
org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:258)
	at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
	at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368)
	at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
	at solandra.SolandraDispatchFilter.execute(SolandraDispatchFilter.java:171)
	at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
	at
solandra.SolandraDispatchFilter.doFilter(SolandraDispatchFilter.java:137)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
	at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

 INFO 12:54:37,022 [idxPosts] webapp=/solandra path=/select
params={fl=id,score&start=0&q=doma_type:(2)+AND+sentiment_type:(0)+AND+text:(piwo+nie+może)&isShard=true&wt=javabin&fsv=true&rows=10&version=2}
status=500 QTime=8 
ERROR 12:54:37,023 java.lang.ArrayIndexOutOfBoundsException: 4
	at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:310)
	at
org.apache.lucene.search.ConjunctionScorer.score(ConjunctionScorer.java:135)
	at org.apache.lucene.search.BooleanScorer2$2.score(BooleanScorer2.java:182)
	at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:309)
	at
org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:47)
	at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:281)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:526)
	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:320)
	at
org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1178)
	at
org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1066)
	at
org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:358)
	at
org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:258)
	at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
	at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368)
	at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
	at solandra.SolandraDispatchFilter.execute(SolandraDispatchFilter.java:171)
	at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
	at
solandra.SolandraDispatchFilter.doFilter(SolandraDispatchFilter.java:137)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
	at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

ERROR 12:54:37,031 org.apache.solr.common.SolrException: 4 
java.lang.ArrayIndexOutOfBoundsException: 4 	at
org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:310) 	at
org.apache.lucene.search.ConjunctionScorer.score(ConjunctionScorer.java:135) 
at org.apache.lucene.search.BooleanScorer2$2.score(BooleanScorer2.java:182) 
at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:309) 
at
org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:47)

at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:281) 
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:526) 	at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:320) 	at
org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1178) 
at
org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1066) 
at
org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:358) 
at
org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:258) 
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)

at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) 
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368) 	at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356) 
at solandra.SolandraDispatchFilter.execute(SolandraDispatchFilter.java:171) 
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
at solandra.SolandraDispatchFilter.doFilter(SolandraDispatchFilter.java:137) 
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) 
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) 
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) 
at org.mortbay.jetty.Server.handle(Server.ja

4  java.lang.ArrayIndexOutOfBoundsException: 4 	at
org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:310) 	at
org.apache.lucene.search.ConjunctionScorer.score(ConjunctionScorer.java:135) 
at org.apache.lucene.search.BooleanScorer2$2.score(BooleanScorer2.java:182) 
at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:309) 
at
org.apache.lucene.search.TopScoreDocCollector$InOrderTopScoreDocCollector.collect(TopScoreDocCollector.java:47)

at org.apache.lucene.search.BooleanScorer2.score(BooleanScorer2.java:281) 
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:526) 	at
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:320) 	at
org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1178) 
at
org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1066) 
at
org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:358) 
at
org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:258) 
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)

at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) 
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1368) 	at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356) 
at solandra.SolandraDispatchFilter.execute(SolandraDispatchFilter.java:171) 
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252) 
at solandra.SolandraDispatchFilter.doFilter(SolandraDispatchFilter.java:137) 
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) 
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) 
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) 
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) 
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) 
at org.mortbay.jetty.Server.handle(Server.ja

request: http://127.0.0.1:8983/solandra/idxPosts.global~3/select
	at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
	at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
	at
org.apache.solr.handler.component.HttpCommComponent$1.call(SearchHandler.java:421)
	at
org.apache.solr.handler.component.HttpCommComponent$1.call(SearchHandler.java:393)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)


Thanks for any help!

--
View this message in context: http://lucene.472066.n3.nabble.com/Solandra-select-query-error-tp3329423p3338620.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message