Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save umeshdangat/ed4601cdcaef1ec7cb0c3012cb0c7634 to your computer and use it in GitHub Desktop.
Save umeshdangat/ed4601cdcaef1ec7cb0c3012cb0c7634 to your computer and use it in GitHub Desktop.
ProfileWeight breaks derived expressions
org.elasticsearch.transport.RemoteTransportException: [node-0][127.0.0.1:9300][indices:data/read/search[phase/query]]
Caused by: java.lang.UnsupportedOperationException: This Weight cannot work outside the RankerQuery context: you must call scorer(context, vectorSupplier)
at com.o19s.es.ltr.query.FeatureVectorWeight.scorer(FeatureVectorWeight.java:39) ~[?:?]
at org.apache.lucene.search.Weight.scorerSupplier(Weight.java:113) ~[lucene-core-7.3.1.jar:7.3.1 ae0705edb59eaa567fe13ed3a222fdadc7153680 - caomanhdat - 2018-05-09 09:27:24]
at org.elasticsearch.search.profile.query.ProfileWeight.scorerSupplier(ProfileWeight.java:66) ~[elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.search.profile.query.ProfileWeight.scorer(ProfileWeight.java:53) ~[elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at com.o19s.es.ltr.query.RankerQuery$RankerWeight.scorer(RankerQuery.java:257) ~[?:?]
at com.o19s.es.ltr.query.RankerQuery$RankerWeight.scorer(RankerQuery.java:191) ~[?:?]
at org.apache.lucene.search.Weight.scorerSupplier(Weight.java:113) ~[lucene-core-7.3.1.jar:7.3.1 ae0705edb59eaa567fe13ed3a222fdadc7153680 - caomanhdat - 2018-05-09 09:27:24]
at org.elasticsearch.search.profile.query.ProfileWeight.scorerSupplier(ProfileWeight.java:66) ~[elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.search.profile.query.ProfileWeight.scorer(ProfileWeight.java:53) ~[elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.apache.lucene.search.QueryRescorer.rescore(QueryRescorer.java:85) ~[lucene-core-7.3.1.jar:7.3.1 ae0705edb59eaa567fe13ed3a222fdadc7153680 - caomanhdat - 2018-05-09 09:27:24]
at org.elasticsearch.search.rescore.QueryRescorer.rescore(QueryRescorer.java:72) ~[elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.search.rescore.RescorePhase.execute(RescorePhase.java:52) ~[elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:110) ~[elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:324) ~[elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:357) ~[elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:333) [elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.search.SearchService$2.onResponse(SearchService.java:329) [elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.search.SearchService$3.doRun(SearchService.java:1019) [elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:725) [elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:41) [elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.3.1-SNAPSHOT.jar:6.3.1-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:844) [?:?]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment