Hi, all
I have a question about Solr and SolrJ's rollback.
I try to rollback like below
try{
server.addBean(dto);
server.commit;
}catch(Exception e){
if (server != null) { server.rollback();}
}
I wonder if any Exception thrown, "rollback" process is run. so all
data would not be updated.
but
s
> on the time retrieved by the driver. If you want UTC, instead of local time,
> you
> might want to look into getDate( columnName, Calendar ). Please see
> http://download.oracle.com/javase/1.4.2/docs/api/java/sql/ResultSet.html#getDate(int,%20java.util.Calendar)
>
> Regards,
> Gora
>
--
--
Kouta Osabe | kota0919was...@gmail.com
Always Look on the Bright Side of Life!
--
Hi,All
I have a problem about Solr Date Field.
The problem is like below.
SolrBean foo = new Bean();
// The type of pubDate property is "java.util.Date" and rs means
"java.sql.ResultSet" so rs.getDate("pub_date") retuns java.sql.Date
Object.
bean.pubDate = rs.getDate("pub_date");
the value of p
Hi everybody,
I use SolrJ to add and update the solr index.
my sample code is like this.
SolrServer server = new CommonsHttpSolrServer("http://localhost:8983/solr";);
ExampleDto dto = new ExampleDto();
dto.id = "a11200";
dto.name = "Dummy";
UpdateResponse response = server.addBean(dto);
server.c