lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi" <ravi.jalada...@siti.com>
Subject :how to add int fileds to lucene:
Date Mon, 12 Dec 2005 13:10:56 GMT
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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message