Re: Document lazy-loading WAS [Re: Fast access to a random page of the search results.]

2005-03-08 Thread Kelvin Tan
On Tue, 8 Mar 2005 18:10:26 + (GMT), mark harwood wrote:  "to be able" != "able to be" > OK, I thought you wanted to count terms within the > title field. If you want to group counts on the whole > field value change the loop in my last post to this: > > for(int i=0;i { > String fiel

Re: Document lazy-loading WAS [Re: Fast access to a random page of the search results.]

2005-03-08 Thread Kelvin Tan
Hey Mark, thanks for the code sample. I did look into this, but for a book's title field, for example, "to be able" != "able to be" and "java programmer" != "programmer (java)" - tokenizer will remove the parentheses so in my use case at least, a field value isn't simply an array of its terms.

Re: Document lazy-loading WAS [Re: Fast access to a random page of the search results.]

2005-03-08 Thread Kelvin Tan
Ah, I apologize. My use of the word "frequency" was misleading. By that, I meant, the number of hits/documents, whose fields have that value. Once again: doc a=title:1,keyword:a,contents:somelongmemoryhoggingstring doc b=title:1,keyword:a,contents:somelongmemoryhoggingstring doc c=title:1,keyword

Re: Document lazy-loading WAS [Re: Fast access to a random page of the search results.]

2005-03-08 Thread Kelvin Tan
Neither. :-) 4) Top 10 fieldvalues (for some fields) returned in search results So, let's say the results of a search were: doc a=title:1,keyword:a,contents:somelongmemoryhoggingstring doc b=title:1,keyword:a,contents:somelongmemoryhoggingstring doc c=title:1,keyword:b,contents:somelongmemoryhog

Document lazy-loading WAS [Re: Fast access to a random page of the search results.]

2005-03-08 Thread Kelvin Tan
Mark, On Tue, 8 Mar 2005 09:56:37 + (GMT), mark harwood wrote: >> But I suppose for Document >> has to be further subclassed so that the other >> non-initialized fields can be obtained as well, or >> > I don't think Document would be the right place for > this - as a design pattern it is cast

Re: Fast access to a random page of the search results.

2005-03-07 Thread Kelvin Tan
:52 +, markharw00d wrote: > Did you mean this? > http://marc.theaimsgroup.com/?l=lucene-user&m=108525376821114&w=2 > > > Kelvin Tan wrote: > >> This is a bump post... >> >> I'm wondering if there's any code (contributed, bugzilla, cor

Re: Fast access to a random page of the search results.

2005-03-07 Thread Kelvin Tan
This is a bump post... I'm wondering if there's any code (contributed, bugzilla, core or otherwise) that provides document lazy-loading functionality, i.e. only eager-initialize specific fields, or load fields on-demand. Thanks, k On Thu, 3 Mar 2005 13:55:00 +0100, Kelvin Tan wrote:

Re: Fast access to a random page of the search results.

2005-03-03 Thread Kelvin Tan
Is this actually in the codebase? I couldn't find it in SVN or in Bugzilla... kelvin On Mon, 28 Feb 2005 11:59:54 -0500, Erik Hatcher wrote: > Or perhaps you > need to investigate the (is it in the codebase already?) patch to > load fields lazily upon demand instead. -