Re: pagination with searchAfter

2022-09-24 Thread Robert Muir
, it skips over any value <= to that, and returns 6,7,8.9,10. So depending on what you are doing, refreshing the index might indeed give some inconsistencies in pagination. But this is nothing new, you may also see inconsistencies in pagination across refreshes with ordinary searches that don'

pagination with searchAfter

2022-09-23 Thread erel
I’ve never used searchAfter before so looking for some tips and hints. I understand that I need to maintain a server side cache with the relevant ScoreDocs, right? The index is refreshed every couple of minutes. How will that affect the cached ScoreDocs? I don’t mind too much having some inco

Pagination in TermsEnum

2019-12-06 Thread Amol Suryawanshi
Hello, I am using TermsEnum to get distinct values of a field. Now I want to implement pagination using TermsEnum. Is it possible? Thanks & Regards, Amol Suryawanshi. Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

Re: Lucene pagination using searchAfter while index is updated

2017-11-17 Thread ivan cruces
oken.html < > http://blog.mikemccandless.com/2011/11/searcherlifetimemanager- > prevents-broken.html> > > Alan Woodward > www.flax.co.uk > > > > On 17 Nov 2017, at 08:30, ivan cruces > wrote: > > > > Hi, > > > > I have implemented pagination w

Re: Lucene pagination using searchAfter while index is updated

2017-11-17 Thread Alan Woodward
odward www.flax.co.uk > On 17 Nov 2017, at 08:30, ivan cruces wrote: > > Hi, > > I have implemented pagination with Lucene using the searchAfter method > provided by IndexSearcher. In every call, I pass the last ScoreDoc returned > in the previous page. > > The problem

Lucene pagination using searchAfter while index is updated

2017-11-17 Thread ivan cruces
Hi, I have implemented pagination with Lucene using the searchAfter method provided by IndexSearcher. In every call, I pass the last ScoreDoc returned in the previous page. The problem is that sometimes, the index gets updated between page and page and occasionally I am getting this exception

Pagination Question

2017-09-02 Thread Bryan Bende
Hello, I'm trying to implement standard pagination with sorting and faceting, and I have some code like the following: // Convert user supplied sorts to Lucene Sort, or use Sort.RELEVANCE if none provided Sort sort = ...; FacetsCollector facetsCollector = new FacetsColl

Re: Pagination using searchAfter

2015-09-04 Thread Chris Hostetter
solution using lucene-java directly https://cwiki.apache.org/confluence/display/solr/Pagination+of+Results https://lucidworks.com/blog/coming-soon-to-solr-efficient-cursor-based-iteration-of-large-result-sets/ https://issues.apache.org/jira/browse/SOLR-54

Re: Pagination using searchAfter

2015-09-04 Thread jamie
Ganesh I would advise to consult Lucene user group archives. I asked a similar question a while back, and it was addressed. Cheers Jamie On 2015/09/04 4:56 PM, Ganesh wrote: Hi I want to use the searchAfter API in IndexSearcher. This API takes ScoreDoc as argument. Do we need to store the

Pagination using searchAfter

2015-09-04 Thread Ganesh
Hi I want to use the searchAfter API in IndexSearcher. This API takes ScoreDoc as argument. Do we need to store the last ScoreDoc value (ScoreDoc value from previous search)? When multiple users perform search, then it might be difficult to store the last ScoreDoc value. I guess, docid value

Pagination using searchAfter

2015-09-04 Thread Ganesh
Hi I want to use the searchAfter API in IndexSearcher. This API takes ScoreDoc as argument. Do we need to store the last ScoreDoc value (ScoreDoc value from previous search)? I guess, docid value is not valid when the IndexReader is reopened. We have multiple users simultaneously querying the

Re: Lucene Pagination with Query

2012-05-12 Thread janwen
That method is for your situation.See the javadoc api for more details. searchAfter publicTopDocs searchAfter(ScoreDoc

Re: Lucene Pagination with Query

2012-05-12 Thread Yogesh patel
But is it possible to get results from between 200 to 300 documents with lucene query when i click on third page number? On Sat, May 12, 2012 at 4:47 PM, janwen wrote: > Yes.You can use the method: > > publicTopFieldDocs apache/lucene/sea

Re: Lucene Pagination with Query

2012-05-12 Thread janwen
Yes.You can use the method: publicTopFieldDocs search(Query query, Filter

Re: Re: Lucene pagination

2011-11-20 Thread janwen
Lucene pagination really need to import.There is no search app that do not need to pagination function. 2011-11-21 janwen | China website : http://www.qianpin.com/ 发件人: Michael McCandless 发送时间: 2011-11-15 21:39 主 题: Re: Lucene pagination 收件人: java-user@lucene.apache.org Also, in

Re: Re: Lucene pagination

2011-11-20 Thread janwen
Waiting for the new API3.5 2011-11-21 janwen | China website : http://www.qianpin.com/ 发件人: Michael McCandless 发送时间: 2011-11-15 21:39 主 题: Re: Lucene pagination 收件人: java-user@lucene.apache.org Also, in 3.5.0 there is a new API in IndexSearcher: searchAfter. It enables you to

Re: Lucene pagination

2011-11-15 Thread Michael McCandless
Also, in 3.5.0 there is a new API in IndexSearcher: searchAfter. It enables you to efficiently collect hits only after the previous last page's last hit. It should be faster, in proportion to how deeply you page... but most apps do not need to do deep paging so simply collecting all hits up throu

Re: Lucene pagination

2011-11-15 Thread Ian Lea
The latter: do the search again and grab the chunk you want. Best not to open the index each time if you can avoid it. http://wiki.apache.org/lucene-java/LuceneFAQ#How_do_I_implement_paging.2C_i.e._showing_result_from_1-10.2C_11-20_etc.3F -- Ian. On Tue, Nov 15, 2011 at 12:05 PM, Felipe Carval

Lucene pagination

2011-11-15 Thread Felipe Carvalho
I've found a couple of people asking around the same thing over the internet, just wanted to check with the experts if there's a better way to do this: how do I paginate Lucene search results? Is there a native way to do this or should I, upon each request, open the index, do the search and get the

Re: Re: Re: search match documents and pagination in lucene3.x

2011-09-21 Thread Mihai Caraman
totalHits = searcher.search( query,searcher.maxDoc()).scoreDocs.length

Re: Re: Re: search match documents and pagination in lucene3.x

2011-09-21 Thread janwen
: http://www.qianpin.com/ 发件人: Ian Lea 发送时间: 2011-09-21 16:27 主 题: Re: Re: search match documents and pagination in lucene3.x 收件人: java-user@lucene.apache.org The n in search(Query query, int n) specifies the number of hits (docs) you want returned. There is no point in lucene

Re: Re: search match documents and pagination in lucene3.x

2011-09-21 Thread Ian Lea
> 网易闪电邮(fm.163.com),免登录、助您同时管理多个邮箱! > > > > 发件人: Ian Lea > 发送时间: 2011-09-21 16:08 > 主 题: Re: search match documents and pagination in lucene3.x > 收件人: java-user@lucene.apache.org > > > >> i want to implements pagination

Re: Re: search match documents and pagination in lucene3.x

2011-09-21 Thread janwen
: Manish Bafna 发送时间: 2011-09-21 16:15 主 题: Re: search match documents and pagination in lucene3.x 收件人: java-user@lucene.apache.org You can use SOLR. On Wed, Sep 21, 2011 at 1:37 PM, Ian Lea wrote: >> i want to implements pagination like google search result page in my >> pr

Re: search match documents and pagination in lucene3.x

2011-09-21 Thread Manish Bafna
You can use SOLR. On Wed, Sep 21, 2011 at 1:37 PM, Ian Lea wrote: >>   i  want to implements pagination like google search result page in my >> project.We use lucene3.3.Here are 2 issue: >>   1.How can i get the number of matched documents > > TopDocs.totalHits &

Re: Re: search match documents and pagination in lucene3.x

2011-09-21 Thread janwen
TopDocs search(Query query, int n) .Hope i clear my issue. thanks again 2011-09-21 janwen | China - 网易闪电邮(fm.163.com),免登录、助您同时管理多个邮箱! 发件人: Ian Lea 发送时间: 2011-09-21 16:08 主 题: Re: search match documents and pagination in lucene3.x 收件人

Re: search match documents and pagination in lucene3.x

2011-09-21 Thread Ian Lea
>   i  want to implements pagination like google search result page in my > project.We use lucene3.3.Here are 2 issue: >   1.How can i get the number of matched documents TopDocs.totalHits >   2.What is the best practice for lucene search results pagination http://wiki.apache.org

Re: Combine data from index and db before sorting and pagination

2010-09-09 Thread Erick Erickson
t;> about here. Without some such detail, it's really hard to make a > >> recommendation. > >> > >> Best > >> Erick > >> > >> On Wed, Sep 1, 2010 at 9:30 AM, Sertic Mirko, Bedag > >> wrote: > >> > >> > The data

Re: Combine data from index and db before sorting and pagination

2010-09-08 Thread fulin tang
ntry matches to >> many >> > index entries, so storing it in the index would be redundant. Also there >> > would be the challenge to keep index and db in sync. Any ideas? >> > >> > Mirko >> > >> > -Ursprünglich

Re: Combine data from index and db before sorting and pagination

2010-09-01 Thread Chris Lu
entries, so storing it in the index would be redundant. Also there > > would be the challenge to keep index and db in sync. Any ideas? > > > > Mirko > > > > -Ursprüngliche Nachricht- > > Von: Ian Lea [mailto:ian@gmail.com] > > Gesendet: Mittwoch, 1.

Re: Combine data from index and db before sorting and pagination

2010-09-01 Thread Erick Erickson
t; Gesendet: Mittwoch, 1. September 2010 15:17 > An: java-user@lucene.apache.org > Betreff: Re: Combine data from index and db before sorting and pagination > > If the sorting and pagination doesn't require data from the database, > just do db lookups for the hits on a page, page by

AW: Combine data from index and db before sorting and pagination

2010-09-01 Thread Sertic Mirko, Bedag
] Gesendet: Mittwoch, 1. September 2010 15:17 An: java-user@lucene.apache.org Betreff: Re: Combine data from index and db before sorting and pagination If the sorting and pagination doesn't require data from the database, just do db lookups for the hits on a page, page by page as required. But i

Re: Combine data from index and db before sorting and pagination

2010-09-01 Thread Ian Lea
If the sorting and pagination doesn't require data from the database, just do db lookups for the hits on a page, page by page as required. But if the db data is required I'd suggest storing it in the index. -- Ian. On Wed, Sep 1, 2010 at 1:43 PM, Sertic Mirko, Bedag wrote: > Hi &

Combine data from index and db before sorting and pagination

2010-09-01 Thread Sertic Mirko, Bedag
Hi I need to implement sorting and pagination of lucene search results. This is quite easy, but I have to combine Data from the index with data from a database. The index has the fulltext data plus a unique identifier for a record from the database. The database stores additional data

Sorting and Pagination with Lucene 2.9

2009-11-10 Thread sbhatti
I noticed that this question has been asked but I could not find good answer so I am posting again. Is there a good example of sorting and pagination wtih Lucene 2.9. I have looked at Solr 1.4 source code for examples and put together some code for testing but it's not quite working. I

RE: Pagination and Sorting

2009-10-01 Thread Uwe Schindler
.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Anshum [mailto:ansh...@gmail.com] > Sent: Thursday, October 01, 2009 2:31 PM > To: java-user@lucene.apache.org > Subject: Re: Pagination and Sorting > > @Christi

Re: Pagination and Sorting

2009-10-01 Thread Anshum
@Christian : Which version of Lucene are you using? For lucene 2.9 this would work. *__code snippet__* IndexReader r = IndexReader.open("/home/anshum/index/indexname", true); IndexSearcher s = new IndexSearcher(r); QueryParser qp = new QueryParser("testfield",new StopAnalyzer()); Query q = qp.par

RE: Pagination and Sorting

2009-10-01 Thread Uwe Schindler
m: Uwe Schindler [mailto:u...@thetaphi.de] > Sent: Thursday, October 01, 2009 2:25 PM > To: java-user@lucene.apache.org > Subject: RE: Pagination and Sorting > > Hi Chris, > > > Uwe, > > > > > You are using TopDocs incorrectly. Normally you use *not* > >

RE: Pagination and Sorting

2009-10-01 Thread Uwe Schindler
Hi Chris, > Uwe, > > > You are using TopDocs incorrectly. Normally you use *not* > Integer.MAX_VALUE, > > as the upper bound of your pagination window as numer of documents. So > if > > user wants to display documents 90 to 100, just set the number to 100 > d

RE: Pagination and Sorting

2009-10-01 Thread Uwe Schindler
gt; To: java-user@lucene.apache.org > Subject: Re: Pagination and Sorting > > Hey Christian, > Try what I wrote in the last reply. Would work absolutely fine. Have > tested > that for very large datasets. > -- > Anshum Gupta > Naukri Labs! > http://ai-cafe.blogspot.c

Re: Pagination and Sorting

2009-10-01 Thread Christian Robert
Anshum, > You could get the hits in a collector and pass the sort to the > collector as it would be the collect function that handles the > sorting. > > searcherObject.search(query,collector); > > Hope that gives you some headway. :) Not quite (yet?) ;-) What do you mean by passing the Sort t

Re: Pagination and Sorting

2009-10-01 Thread Anshum
, Oct 1, 2009 at 5:23 PM, Christian Robert wrote: > Uwe, > > > You are using TopDocs incorrectly. Normally you use *not* > Integer.MAX_VALUE, > > as the upper bound of your pagination window as numer of documents. So if > > user wants to display documents 90 to 100,

Re: Pagination and Sorting

2009-10-01 Thread Christian Robert
Uwe, > You are using TopDocs incorrectly. Normally you use *not* Integer.MAX_VALUE, > as the upper bound of your pagination window as numer of documents. So if > user wants to display documents 90 to 100, just set the number to 100 docs. > If the user then goes to docs 100 to 110, ju

Re: Pagination and Sorting

2009-10-01 Thread Anshum
sist me. > > What I'm trying to do is returning search results both sorted and > paginated. So far I haven't been able to come up with a working solution. > > Pagination without sorting is no problem - simply looping through the > document identifiers and grabbing

RE: Pagination and Sorting

2009-10-01 Thread Uwe Schindler
Hallo Chris, You are using TopDocs incorrectly. Normally you use *not* Integer.MAX_VALUE, as the upper bound of your pagination window as numer of documents. So if user wants to display documents 90 to 100, just set the number to 100 docs. If the user then goes to docs 100 to 110, just reexecute

Pagination and Sorting

2009-10-01 Thread Christian Robert
Hello everybody, I'm looking at quite an interesting challenge right now, so I hope that somebody out there will be able to assist me. What I'm trying to do is returning search results both sorted and paginated. So far I haven't been able to come up with a working solution. Pag

Re: Collector Pagination

2009-06-19 Thread João Silva
; > - > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > -Original Message- > > From: João Silva [mailto:galaio.si...@gmail.com] > > Sent: Friday, June 19, 2009 2:17 PM > > To: java-user@luce

RE: Collector Pagination

2009-06-19 Thread Uwe Schindler
9, 2009 2:17 PM > To: java-user@lucene.apache.org > Subject: Re: Collector Pagination > > well, > > i have somthing like that: > > int hitsPerPage = 10; > IndexSearcher searcher = new IndexSearcher(this.indexPath); > TopDocCollector coll

Re: Collector Pagination

2009-06-19 Thread João Silva
>> - >> Uwe Schindler >> H.-H.-Meier-Allee 63, D-28213 Bremen >> http://www.thetaphi.de >> eMail: u...@thetaphi.de >> >> >> > -Original Message----- >> > From: João Silva [mailto:galaio.si...@gmail.com] >> > Sent: Friday, June 1

Re: Collector Pagination

2009-06-19 Thread João Silva
> > > -Original Message- > > From: João Silva [mailto:galaio.si...@gmail.com] > > Sent: Friday, June 19, 2009 12:58 PM > > To: java-user@lucene.apache.org > > Subject: Collector Pagination > > > > Hi, > > is there any api form of Hits pagina

RE: Collector Pagination

2009-06-19 Thread Uwe Schindler
. Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: João Silva [mailto:galaio.si...@gmail.com] > Sent: Friday, June 19, 2009 12:58 PM > To: java-user@lucene.apache.org > Subject: Colle

Collector Pagination

2009-06-19 Thread João Silva
Hi, is there any api form of Hits pagination? for example, if i want to retreve the hits between an interval. -- Cumprimentos, João Carlos Galaio da Silva

Re: pagination search results

2009-05-13 Thread Nate
ress.com > > --- On Tue, 5/12/09, Ian Lea wrote: > > From: Ian Lea > Subject: Re: pagination search results > To: java-user@lucene.apache.org > Date: Tuesday, May 12, 2009, 3:10 PM > > See the FAQ entry "How do I implement paging, i.e. showing result from > 1-10,

Re: pagination search results

2009-05-13 Thread Daniel Susanto
Do you have any example for that?? I'm using JSP, what i need is paging just like in google search... :D thx Daniel Susanto http://susantodaniel.wordpress.com --- On Tue, 5/12/09, Ian Lea wrote: From: Ian Lea Subject: Re: pagination search results To: java-user@lucene.apache.org

Re: pagination search results

2009-05-12 Thread Ian Lea
See the FAQ entry "How do I implement paging, i.e. showing result from 1-10, 11-20 etc?". -- Ian. On Tue, May 12, 2009 at 6:37 AM, Daniel Susanto wrote: > Hi, > > Please help, how to do pagination search results? > > note: i'm using Java Server Pages. >

pagination search results

2009-05-11 Thread Daniel Susanto
Hi, Please help, how to do pagination search results? note: i'm using Java Server Pages. thx. Daniel Susanto http://susantodaniel.wordpress.com

Re: Pagination with MultiSearcher

2009-03-19 Thread Amin Mohammed-Coleman
ne.apache.org/java/2_4_1/api/org/apache/lucene/search/Sort.html > > > > > sort) > >throws IOException > > <http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html> > > > > > > Best > > Erick > > > > >

Re: Pagination with MultiSearcher

2009-03-19 Thread Amin Mohammed-Coleman
e/lucene/search/Query.html >>> > > > >>> > > query, >>> > > Filter >>> > > < >>> > > >>> > >>> http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/search

Re: Pagination with MultiSearcher

2009-03-16 Thread Amin Mohammed-Coleman
t; > > >> > > query, >> > > Filter >> > > < >> > > >> > >> http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/search/Filter.html >> > > > >> > > filter, >> > >

Re: Pagination with MultiSearcher

2009-03-16 Thread Amin Mohammed-Coleman
int n, > > > Sort > > > < > > > > > > http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/search/Sort.html > > > > > > > sort) > > >throws IOException > > >

Re: Pagination with MultiSearcher

2009-03-15 Thread Erick Erickson
rch/Filter.html > > > > > filter, > > int n, > > Sort > > < > > > http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/search/Sort.html > > > > > sort) > > throw

Re: Pagination with MultiSearcher

2009-03-15 Thread Amin Mohammed-Coleman
.4/docs/api/java/io/IOException.html> > > > Best > Erick > > > On Sun, Mar 15, 2009 at 2:12 AM, Amin Mohammed-Coleman >wrote: > > > Hi > > > > I'm looking at trying to implement pagination for my search project. I've > > been google-

Re: Pagination with MultiSearcher

2009-03-15 Thread Erick Erickson
earch/Sort.html> sort) throws IOException <http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html> Best Erick On Sun, Mar 15, 2009 at 2:12 AM, Amin Mohammed-Coleman wrote: > Hi > > I'm looking at trying to implement pagination for my search project. I

Pagination with MultiSearcher

2009-03-14 Thread Amin Mohammed-Coleman
Hi I'm looking at trying to implement pagination for my search project. I've been google-ing for a solution. So far no luck. I've seen implementations of HitCollector which looks promising, however my search method has to completely change. For example I'm currently

RE: Pagination ...

2007-12-27 Thread Dragon Fly
Thanks. Date: Wed, 26 Dec 2007 13:07:03 -0500 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Pagination ... CC: java-user@lucene.apache.org You might want to take a look at Solr (http://lucene.apache.org/solr/). You could either use Solr directly, or see how they implement paging

Re: Pagination ...

2007-12-26 Thread Mike Richmond
You might want to take a look at Solr (http://lucene.apache.org/solr/). You could either use Solr directly, or see how they implement paging. --Mike On Dec 26, 2007 12:12 PM, Zhou Qi <[EMAIL PROTECTED]> wrote: > Using the search function for pagination will carry out unnecess

Re: Pagination ...

2007-12-26 Thread Zhou Qi
Using the search function for pagination will carry out unnecessary index search when you are going previous or next. Generally, most of the information need (e.g 80%) can be satisfied by the first 100 documents (20%). In lucene, the returing documents is set to 100 for the sake of speed. I am

RE: Pagination ...

2007-12-26 Thread Dragon Fly
Any advice on this? Thanks. > From: [EMAIL PROTECTED] > To: java-user@lucene.apache.org > Subject: Pagination ... > Date: Sat, 22 Dec 2007 10:19:30 -0500 > > > Hi, > > What is the most efficient way to do pagination in Lucene? I have always done > the followin

Pagination ...

2007-12-22 Thread Dragon Fly
Hi, What is the most efficient way to do pagination in Lucene? I have always done the following because this "flavor" of the search call allows me to specify the top N hits (e.g. 1000) and a Sort object: TopFieldDocs topFieldDocs = searcher.search(query, null, 1000, SORT_BY_DAT

Re: Pagination

2007-07-04 Thread markharw00d
It looks that we may have different cases. I was hoping to answer the original question which was how to retrieve pages of matching documents from a Lucene index (no database mentioned). >>So far worked just fine. I have 5000 rows of items and I think will still work fine later when I'd have

Re: Pagination

2007-07-03 Thread mark harwood
na <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Tuesday, 3 July, 2007 5:17:51 PM Subject: Re: Pagination Mark, Thanks for the code. Well..I´m doing the same thing you are: Retrieve some Doc IDs and then use the code - Document doc=searcher.doc(sd[i].doc) - to get the Docum

Re: Pagination

2007-07-03 Thread Alixandre Santana
ne.search.TermQuery; import org.apache.lucene.util.PriorityQueue; /** * A HitCollector that retrieves a specific page of results * @author maharwood */ public class HitPageCollector extends HitCollector { //Demo code showing pagination public static void main(String[] args) throws

Re: Pagination

2007-07-03 Thread mcmoisei
.apache.lucene.index.Term; > import org.apache.lucene.search.HitCollector; > import org.apache.lucene.search.IndexSearcher; > import org.apache.lucene.search.Query; > import org.apache.lucene.search.ScoreDoc; > import org.apache.lucene.search.TermQuery; > import org.apache.lucene.util.PriorityQueue; >

Re: Pagination

2007-07-03 Thread mark harwood
age of results * @author maharwood */ public class HitPageCollector extends HitCollector { //Demo code showing pagination public static void main(String[] args) throws Exception { IndexSearcher s=new IndexSearcher("/indexes/nasa"); Query q=new TermQuery(new

RE: Pagination

2007-07-03 Thread mcmoisei
as Alixandre. How do I get the content of the > document instead of the document id? > > Thanks. > > Regards, > Lee Li Bin > -Original Message- > From: Alixandre Santana [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 03, 2007 12:55 AM > To: java-user@lu

RE: Pagination

2007-07-02 Thread Lee Li Bin
: Pagination Mark, The ScoreDoc[] contains only the IDs of each lucene document. what would be the best way of getting the entire (lucene)document ? Should i do a new search with the ID retrivied by hpc.getScores() - (searcher.doc(idDoc))? thanks. Alixandre On 7/2/07, mark harwood <[EMAIL PROTEC

RE: Pagination

2007-07-02 Thread Lee Li Bin
@lucene.apache.org Subject: Re: Pagination Mark, The ScoreDoc[] contains only the IDs of each lucene document. what would be the best way of getting the entire (lucene)document ? Should i do a new search with the ID retrivied by hpc.getScores() - (searcher.doc(idDoc))? thanks. Alixandre On 7/2/07

Re: Pagination

2007-07-02 Thread Alixandre Santana
wood */ public class HitPageCollector extends HitCollector { //Demo code showing pagination public static void main(String[] args) throws Exception { IndexSearcher s=new IndexSearcher("/indexes/nasa"); HitPageCollector hpc=new HitPageCollector(1,10);

Re: Pagination

2007-07-02 Thread mark harwood
*/ public class HitPageCollector extends HitCollector { //Demo code showing pagination public static void main(String[] args) throws Exception { IndexSearcher s=new IndexSearcher("/indexes/nasa"); HitPageCollector hpc=new HitPageCollector(1,10); Query q=new Ter

RE: Pagination

2007-07-02 Thread Lee Li Bin
: Re: Pagination After search, you will just get an object Hits, and go through all of the documents by hits.doc(i). The pagination is controlled by you. Lucene is pre-caching first 200 documents and lazy loading the rest by batch size 200. -- Chris Lu - Instant Scalable

Re: Pagination

2007-06-29 Thread Chris Lu
After search, you will just get an object Hits, and go through all of the documents by hits.doc(i). The pagination is controlled by you. Lucene is pre-caching first 200 documents and lazy loading the rest by batch size 200. -- Chris Lu - Instant Scalable Full-Text Search

Pagination

2007-06-29 Thread Lee Li Bin
Hi, does anyone knows how to do pagination on jsp page using the number of hits return? Or any other solutions? Do provide me with some sample coding if possible or a step by step guide. Sry if I'm asking too much, I'm new to lucene. Thanks

Re: pagination

2007-02-22 Thread Peter W.
13:08 To: java-user@lucene.apache.org Subject: Re: pagination See TopDocs, HitCollector, etc. Don't iterate through a Hits objects to get docs beyond, say, 100 since it's designed to efficiently return the first 100 documents but re-executes the queries each 100 or so times you advance to the

Re: pagination

2007-02-21 Thread Erik Hatcher
EMAIL PROTECTED]> wrote: Hello, I was wondering if Lucene provides any mechanism which helps in pagination. In other words is there a way to return the first 10 of 500 results and then the next 10 and so on. Cheers This email and any attached files are confidential and copyright pro

Re: pagination

2007-02-21 Thread Mohammad Norouzi
2/21/07, Kainth, Sachin <[EMAIL PROTECTED]> wrote: Hello, I was wondering if Lucene provides any mechanism which helps in pagination. In other words is there a way to return the first 10 of 500 results and then the next 10 and so on. Cheers This email and any attached files are confi

RE: pagination

2007-02-21 Thread Kainth, Sachin
e.org Subject: Re: pagination See TopDocs, HitCollector, etc. Don't iterate through a Hits objects to get docs beyond, say, 100 since it's designed to efficiently return the first 100 documents but re-executes the queries each 100 or so times you advance to the next document. Erick On

Re: pagination

2007-02-21 Thread Erick Erickson
in <[EMAIL PROTECTED]> wrote: Hello, I was wondering if Lucene provides any mechanism which helps in pagination. In other words is there a way to return the first 10 of 500 results and then the next 10 and so on. Cheers This email and any attached files are confidential and copyright protected

pagination

2007-02-21 Thread Kainth, Sachin
Hello, I was wondering if Lucene provides any mechanism which helps in pagination. In other words is there a way to return the first 10 of 500 results and then the next 10 and so on. Cheers This email and any attached files are confidential and copyright protected. If you are not the

Re: How to do pagination on fethed result using lucene...

2006-06-20 Thread Grant Ingersoll
lt an small application that give some thousand results. I want to : display results as google displays using pagination. : Here my question is, how I'll maintain the sequence of displayed result. : : Should i associate the "Hits" object along with the session. assuming your app

Re: How to do pagination on fethed result using lucene...

2006-06-20 Thread heritrix . lucene
wrote: : I have built an small application that give some thousand results. I want to : display results as google displays using pagination. : Here my question is, how I'll maintain the sequence of displayed result. : : Should i associate the "Hits" object along with the session. assu

Re: How to do pagination on fethed result using lucene...

2006-06-20 Thread Chris Hostetter
: I have built an small application that give some thousand results. I want to : display results as google displays using pagination. : Here my question is, how I'll maintain the sequence of displayed result. : : Should i associate the "Hits" object along with the session.

How to do pagination on fethed result using lucene...

2006-06-19 Thread heritrix . lucene
Hi all, I have built an small application that give some thousand results. I want to display results as google displays using pagination. Here my question is, how I'll maintain the sequence of displayed result. Should i associate the "Hits" object along with the session. A