[infinispan-dev] Query order question
Emmanuel Bernard
emmanuel at hibernate.org
Tue Nov 24 03:13:40 EST 2009
No it's not guaranteed by Lucene. It's actually guaranteed not to as
Lucene order by relevance OOTB and even if it did not, Lucene reorder
entries when compacting the index. So order is not guaranteed just
like a regular relational database.
You could store a globally unique incremented number with all your
objects and sort by this field, though, if you really need this feature.
On 23 nov. 09, at 22:39, Navin Surtani wrote:
>
> On 23 Nov 2009, at 21:08, Manik Surtani wrote:
>
>>
>> On 20 Nov 2009, at 23:44, Bryan Grunow wrote:
>>
>>> When running a local query against a FIFODataContainer I get the
>>> results back in FIFO order. Is this guaranteed?
>>
>> No this is not. For example your query may have additional
>> ordering rules. If you see stuff in FIFO, this is purely
>> coincidental.
>>
>>> If not do you think it’s possible for 4.1 when queries are
>>> officially supported?
>>
>> Lucene maintains the indexes and performs searching - so we would
>> need to look at Lucene and see if it supports a default FIFO, etc
>> ordering. Navin/Emmanuel/Sanne - would either of you know off the
>> top of your head?
>
> I unfortunately don't know this off the top of my head. I'm guessing
> Emmanuel and/or Sanne would have a better idea.
>
>>
>> Cheers
>> Manik
>>
>> --
>> Manik Surtani
>> manik at jboss.org
>> Lead, Infinispan
>> Lead, JBoss Cache
>> http://www.infinispan.org
>> http://www.jbosscache.org
>>
>>
>>
>>
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
> Navin Surtani
>
> Intern Infinispan
> Intern JBoss Cache Searchable
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20091124/4ebe495d/attachment-0002.html
More information about the infinispan-dev
mailing list