You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Julian Davchev <jm...@drun.net> on 2009/10/02 13:35:08 UTC
yellow pages navigation kind menu. howto take every 100th row from
resultset
Hi,
Long story short: how can I take every 100th row from solr resultset.
What would syntax for this be.
Long story:
Currently I have lots of say documents(articles) indexed. They all have
field title with corresponding value.
atitle
btitle
.....
*title
How do I build menu so I can search of those?
I cannot just hardcode A B C D meaning all starting
with A all starting with B etc...cause there are unicode characters
and english alphabet will just not cut it...
So my idea is to make ranges like
[atitle - mtitle] [mtitle - ltitle] ...etc etc (based on
actual title names I got)
Questions is how do I figure out what those atitle-mtitle is (like get
from solr query every 100th record)
Two solutions I found:
1. get all stuff and do it server side (huge load as it's thousands
record we talk about)
2. use solr sort and &start and make N calls until resulted rows <
100. But this will mean quite a load as well as there lots of records.
Any pointers?
Thanks
Re: yellow pages navigation kind menu. howto take every 100th row
from resultset
Posted by Alexey Serba <as...@gmail.com>.
It seems that you need Faceted
Search<http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Faceted-Search-Solr>
On Fri, Oct 2, 2009 at 3:35 PM, Julian Davchev <jm...@drun.net> wrote:
> Hi,
>
> Long story short: how can I take every 100th row from solr resultset.
> What would syntax for this be.
>
> Long story:
>
> Currently I have lots of say documents(articles) indexed. They all have
> field title with corresponding value.
>
> atitle
> btitle
> .....
> *title
>
> How do I build menu so I can search of those?
> I cannot just hardcode A B C D meaning all starting
> with A all starting with B etc...cause there are unicode characters
> and english alphabet will just not cut it...
>
> So my idea is to make ranges like
>
> [atitle - mtitle] [mtitle - ltitle] ...etc etc (based on
> actual title names I got)
>
>
> Questions is how do I figure out what those atitle-mtitle is (like get
> from solr query every 100th record)
> Two solutions I found:
> 1. get all stuff and do it server side (huge load as it's thousands
> record we talk about)
> 2. use solr sort and &start and make N calls until resulted rows <
> 100. But this will mean quite a load as well as there lots of records.
>
> Any pointers?
> Thanks
>
>
>