Re: Finding the last committed record in SOLR 4

2012-12-21 Thread Lance Norskog
t("sort","id desc"); QueryResponse rsp = m_Server.query( query ); SolrDocumentList docs = rsp.getResults(); SolrDocument doc = docs.get(0); long id = (Long) doc.getFieldValue("id");

Re: Finding the last committed record in SOLR 4

2012-12-20 Thread Upayavira
uery.set("rows","1"); >query.set("sort","id desc"); > >QueryResponse rsp = m_Server.query( query ); >SolrDocumentList docs = rsp.getResults(); >SolrDocument doc = docs.get(0); > long id = (Lon

Finding the last committed record in SOLR 4

2012-12-19 Thread Joe
"); -- View this message in context: http://lucene.472066.n3.nabble.com/Finding-the-last-committed-record-in-SOLR-4-tp4028235.html Sent from the Solr - User mailing list archive at Nabble.com.