private void addTextField(Document doc, String fieldName, String[] sections)
{
for(int i = 0; i < sections.length; i++)
{
Field field = new Field(fieldName, new SectionTokenStream(analyzer.tokenStream(fieldName, new StringReader(sections[i])), i));
doc.add(field);
}
}