[ 
http://issues.apache.org/jira/browse/LUCENE-558?page=comments#action_12376911 ] 

Grant Ingersoll commented on LUCENE-558:
----------------------------------------

I am all for extending the FieldSelector.  I was on the fence about adding 
things like the state of the booleans for stored, indexed, term vector, etc. to 
the interface.  In the end, I opted for the simplest, thinking others would add 
in their ideas.

Chuck, perhaps we can synch up our two patches.  If you are up to it, add what 
you think you want on FieldSelector on Issue 545, or we can merge the two and 
open a new issue, closing out these two.  Since we have a little bit of time 
before the 2.0 release, I think we can get this right to everyone's 
satisfaction.

As for skipChars, I missed your version ( I guess we both need to learn to read 
patches better!).  I agree that we can't really achieve an optimum solution 
unless we change the file format, and I don't think that is really warranted 
yet, although I know the GData thread has proposed some format changes too.  
Maybe we could sweep them both in at the same time.  Just a thought.

> Selective field loading
> -----------------------
>
>          Key: LUCENE-558
>          URL: http://issues.apache.org/jira/browse/LUCENE-558
>      Project: Lucene - Java
>         Type: New Feature

>   Components: Index
>     Versions: 2.0
>  Environment: All
>     Reporter: Chuck Williams
>  Attachments: LuceneTrunk.patch
>
> Provides a new api, IndexReader.document(int doc, String[] fields).  A 
> document containing only the specified fields is created.  The other fields 
> of the document are not loaded, although unfortunately uncompressed strings 
> still have to be scanned because the length information in the index is for 
> UTF-8 encoded chars and not bytes.  This is useful for applications that need 
> quick access to a small subset of the fields.  It can be used in conjunction 
> with or for some uses instead of ParallelReader.
> This is a much smaller change for a simpler use case than Lucene-545.  No 
> existing API's are affected.
> All the tests pass and new tests are added to verify the feature.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to