-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
field "tags" was indexed without position data; cannot run PhraseQuery #4475
Comments
I am stuck in the same situation. It seems to be applying default template which I don't want it to. I have rolled back to logstash-1.1.13. Dropped the latest index but it creates a new one with default template. Kibana throws this error I can't seem to find out where it's picking up the default template from? |
I have the same issue (ES 0.90.7 and last logstash build 1.4.0-dev). On syslog messages, Kibana thows this error on field "host" and "facility", but not "program" or some other custom fields I tested. Copy paste of error message in elasticsearch.log :
|
I guess that is due to a set |
Yestoday I update ES to 0.90.7 and logstash to 1.3.1
use kibana filter with tag I get these error
[2013-12-17 11:42:29,128][DEBUG][action.search.type ] [node-10.7.3.121] [logstash-2013.12.17][3], node[aLYmR50MR_W0cQdMGG8Uxw], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@51fc89c6]
org.elasticsearch.transport.RemoteTransportException: [node-10.7.3.122][inet[/10.7.3.122:9300]][search/phase/query]
Caused by: org.elasticsearch.search.query.QueryPhaseExecutionException: [logstash-2013.12.17][3]: query[filtered(ConstantScore(:))->BooleanFilter(+: +cache(@timestamp:[1387165326783 TO 1387251749031]) +cache(QueryWrapperFilter(+(tags:"syq yxg") +(tags:apache))) +BooleanFilter(+:))],from[0],size[500],sort[<custom:"@timestamp": org.elasticsearch.index.fielddata.fieldcomparator.LongValuesComparatorSource@684f9f43>!]: Query Failed [Failed to execute main query]
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:123)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:229)
at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:623)
at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:612)
at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:270)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.IllegalStateException: field "tags" was indexed without position data; cannot run PhraseQuery (term=syq)
at org.apache.lucene.search.PhraseQuery$PhraseWeight.scorer(PhraseQuery.java:273)
at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:311)
at org.apache.lucene.search.QueryWrapperFilter$1.iterator(QueryWrapperFilter.java:59)
at org.elasticsearch.common.lucene.docset.DocIdSets.toCacheable(DocIdSets.java:79)
at org.elasticsearch.index.cache.filter.weighted.WeightedFilterCache$FilterCacheFilterWrapper.getDocIdSet(WeightedFilterCache.java:171)
at org.elasticsearch.common.lucene.search.XBooleanFilter.getDocIdSet(XBooleanFilter.java:83)
at org.elasticsearch.common.lucene.search.ApplyAcceptedDocsFilter.getDocIdSet(ApplyAcceptedDocsFilter.java:45)
at org.apache.lucene.search.ConstantScoreQuery$ConstantWeight.scorer(ConstantScoreQuery.java:131)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:624)
at org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:167)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:587)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:539)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:510)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:345)
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:112)
how to fix it ?
The text was updated successfully, but these errors were encountered: