mayya-sharipova commented on a change in pull request #11:
URL: https://github.com/apache/lucene/pull/11#discussion_r596373649



##########
File path: 
lucene/core/src/java/org/apache/lucene/index/TermVectorsConsumerPerField.java
##########
@@ -149,9 +149,6 @@ boolean start(IndexableField field, boolean first) {
       doVectors = field.fieldType().storeTermVectors();
 
       if (doVectors) {
-
-        termsWriter.hasVectors = true;

Review comment:
       We do this now on the FieldInfo creation, in the 
`IndexingChain.PerField.setInvertState`: 
   ```java
   if (fieldInfo.hasVectors()) {
     termVectorsWriter.setHasVectors();
   }
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to