In the inverted index, the 1 will be stored as a term (in the term dictionary) and a single postings entry will be added for the document. The only difference will be in the term frequency stored for that document, since the term frequency of "1" for age: [1, 1, 1, 1, 1, 1] is 6 and the term frequency of "1" for age:[1] is 1.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.