But - what is it that makes '9' the next id after '5'?  why not '6'?  Or 
'91238412'? or '4'?

i.e. you still haven't answered the question about what 'next' and 'previous' 
really means...

But - if you already know that '9' is the next page, why not just do another 
query with id '9' to get the next record?

Bob Sandiford | Lead Software Engineer | SirsiDynix
P: 800.288.8020 X6943 | bob.sandif...@sirsidynix.com
www.sirsidynix.com


> -----Original Message-----
> From: Jonty Rhods [mailto:jonty.rh...@gmail.com]
> Sent: Thursday, July 21, 2011 2:33 PM
> To: solr-user@lucene.apache.org
> Subject: Re: previous and next rows of current record
> 
> Hi
> 
> in my case there is no id sequence. id is generated sequence wise for
> all category. but when we filter by category then same id become
> random. If i m on detail page which have id 5 and nrxt id is 9 so on
> same page my requirment is to get next id is 9.
> 
> On Thursday, July 21, 2011, Bob Sandiford
> <bob.sandif...@sirsidynix.com> wrote:
> > Well, it sort of depends on what you mean by the 'previous' and the
> 'next' record.
> >
> > Do you have some type of sequencing built into your concept of your
> solr / lucene indexes?  Do you have sequential id's?
> >
> > i.e. What's the use case, and what's the data available to support
> your use case?
> >
> > Bob Sandiford | Lead Software Engineer | SirsiDynix
> > P: 800.288.8020 X6943 | bob.sandif...@sirsidynix.com
> > www.sirsidynix.com
> >
> >> -----Original Message-----
> >> From: Jonty Rhods [mailto:jonty.rh...@gmail.com]
> >> Sent: Thursday, July 21, 2011 2:18 PM
> >> To: solr-user@lucene.apache.org
> >> Subject: Re: previous and next rows of current record
> >>
> >> Pls help..
> >>
> >> On Thursday, July 21, 2011, Jonty Rhods <jonty.rh...@gmail.com>
> wrote:
> >> > Hi,
> >> >
> >> > Is there any special query in solr to get the previous and next
> >> record of current record.I am getting single record detail using id
> >> from solr server. I need to get  next and previous on detail page.
> >> >
> >> > regardsJonty
> >> >
> >
> >
> >


Reply via email to