String text = "text";
String color = "color";
Document doc1 = new Document();
doc1.add(new TextField(text, "Foo1", Store.YES));
doc1.add(new StringField(color, RED, Store.YES));
m_indexWriter.addDocument(doc1);
m_indexWriter.commit();
Document doc2 = new Document();
doc2.add(new TextField(text, "Foo2", Store.YES));
doc2.add(new StringField(color, RED, Store.YES));
m_indexWriter.addDocument(doc2);
m_indexWriter.commit();
Document doc3 = new Document();
doc3.add(new TextField(text, "Foo3", Store.YES));
doc3.add(new StringField(color, BLUE, Store.YES));
m_indexWriter.addDocument(doc3);
m_indexWriter.commit();
SimpleFacetHandler colorHandler = new SimpleFacetHandler(color);