Skip to content
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

ShardTermVectorsService calls docFreq() on unpositioned TermsEnum #10660

Closed
rmuir opened this issue Apr 19, 2015 · 0 comments
Closed

ShardTermVectorsService calls docFreq() on unpositioned TermsEnum #10660

rmuir opened this issue Apr 19, 2015 · 0 comments
Labels
>bug :Search/Search Search-related issues that do not fall into other categories v1.5.2 v1.6.0 v2.0.0-beta1

Comments

@rmuir
Copy link
Contributor

rmuir commented Apr 19, 2015

when experimenting with lucene codec randomization, AssertingCodec hits this. I don't understand the code in question but it definitely ignores the result of seekExact()

ERROR 0.30s J0 | GetTermVectorsTests.testArtificialNonExistingField <<<

Caused by: java.lang.AssertionError: docFreq() called on unpositioned TermsEnum
at org.apache.lucene.index.AssertingLeafReader$AssertingTermsEnum.docFreq(AssertingLeafReader.java:188)
at org.elasticsearch.action.termvectors.TermVectorsWriter.writeTermStatistics(TermVectorsWriter.java:230)
at org.elasticsearch.action.termvectors.TermVectorsWriter.setFields(TermVectorsWriter.java:109)
at org.elasticsearch.action.termvectors.TermVectorsResponse.setFields(TermVectorsResponse.java:365)
at org.elasticsearch.index.termvectors.ShardTermVectorsService.getTermVectors(ShardTermVectorsService.java:152)
... 6 more

@rmuir rmuir added the >bug label Apr 19, 2015
@s1monw s1monw closed this as completed in a6c154a Apr 20, 2015
s1monw added a commit to s1monw/elasticsearch that referenced this issue Apr 20, 2015
Conflicts:
	src/main/java/org/elasticsearch/action/termvector/TermVectorWriter.java
s1monw added a commit that referenced this issue Apr 20, 2015
Conflicts:
	src/main/java/org/elasticsearch/action/termvector/TermVectorWriter.java
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
Conflicts:
	src/main/java/org/elasticsearch/action/termvector/TermVectorWriter.java
@clintongormley clintongormley added :Search/Search Search-related issues that do not fall into other categories and removed :Term Vectors labels Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Search Search-related issues that do not fall into other categories v1.5.2 v1.6.0 v2.0.0-beta1
Projects
None yet
Development

No branches or pull requests

3 participants