Re: Retrieving one object

2012-12-11 Thread Drone42
My mistake;

I was using the embedded SOLR server. I was storing in one route and
searching through another. The changes from the storage wasnt visible (file
open) for the search.

Changing to use the standalone server solved the problem. 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Retrieving-one-object-tp4025810p4026068.html
Sent from the Solr - User mailing list archive at Nabble.com.


Retrieving one object

2012-12-10 Thread Drone42
I have stored multiple objects with the values;

uniqueUri
name
timestamp.

There can be multiple object with the same name, but they will have
different timestamps (and different uniqueUri)

I want to retrieve the object of a given name with the latest timestamp. As
an example I might have

1. uniqueUri=99661, name=FOO, timestamp=1355174089270
2. uniqueUri=98765, name=FOO, timestamp=1355174089870

I want to retrieve only object 2.

I have tried retrieving 1 row and sorting DECENDING on timestamp, but this
still returns the first object.

How can I do this?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Retrieving-one-object-tp4025810.html
Sent from the Solr - User mailing list archive at Nabble.com.