Hi,

 

I am trying to add some fields to lucene and I heard that adding int values
are going to give much faster retrieval than adding to String values. So I
want to add int values to document . But 

 

document.add(Field.Text("Candidate", objResultSet.getString("ROW_ID")));

document.add(Field.Keyword("lastmodified",
objResultSet.getDate("MODIFIED_ON")));

document.add(Field.Text("days",days) );

document.add(Field.Text("contents", objReader));

 

 

Days are int but it is giving error . Please suggest me with the steps to
add and search those integer fields 

 

 

 

Thanks

 

Ravi Kumar Jaladanki

Reply via email to