I am using lucene 4.0 now i want to analyze field for using StringField.. Could Anyone tell me there is any way to to to analyzed String...
Document d = new Document();
d.add(new StringField("id_c", rs.getString("id_c"), Field.Store.YES, Field.Index.ANALYZED));
d.add(new StringField("id_c", Field.Store.YES, Field.Index.ANALYZED));
d.add(new StringField("name", Field.Store.YES, Field.Index.ANALYZED));
d.add(new StringField("dob", Field.Store.YES, Field.Index.ANALYZED));
d.add(new StringField("dep", Field.Store.YES, Field.Index.ANALYZED));
d.add(new StringField("salary", Field.Store.YES, Field.Index.ANALYZED));
how can i use Field.Index.ANALYZED this way .. any way to overcome this difficulties