lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Sandiford <bob.sandif...@sirsidynix.com>
Subject RE: previous and next rows of current record
Date Thu, 21 Jul 2011 18:38:41 GMT
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.Sandiford@sirsidynix.com
www.sirsidynix.com


> -----Original Message-----
> From: Jonty Rhods [mailto:jonty.rhods@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.sandiford@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.Sandiford@sirsidynix.com
> > www.sirsidynix.com
> >
> >> -----Original Message-----
> >> From: Jonty Rhods [mailto:jonty.rhods@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.rhods@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
> >> >
> >
> >
> >



Mime
View raw message