FAQ
Hi

Guys

Apologies...........



On using the integer number of Indexreader.maxDoc() API ,

Is it possible to get the VALUES from the varoius fieldtypes.

ex:- 'docs.get("contents") at IndexReader.maxdoc()'



If so How...??




WITH WARM REGARDS
HAVE A NICE DAY
[ N.S.KARTHIK]



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org

Search Discussions

  • Erik Hatcher at Jan 4, 2005 at 11:41 am

    On Jan 4, 2005, at 5:19 AM, Karthik N S wrote:
    On using the integer number of Indexreader.maxDoc() API ,

    Is it possible to get the VALUES from the varoius fieldtypes.

    ex:- 'docs.get("contents") at IndexReader.maxdoc()'



    If so How...??
    Just to be sure I understand... you want the last document in the
    index? IndexReader.document(n) will give you this.

    Erik


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org
  • Karthik N S at Jan 4, 2005 at 12:25 pm
    Hi Erik

    Apologies.......

    I would like to EXTRACT the DATA from the various fields of the Last
    Document [as u said ]

    Ex: at IndexReader.maxDoc = 100

    doc.get("Content") == "ISBN100"
    doc.get("name") == "LUCENE IN ACTION""
    doc.get("author") == "Erik Hatcher"
    .....

    This is my Requirement.

    Please
    With regards
    Karthik


    -----Original Message-----
    From: Erik Hatcher
    Sent: Tuesday, January 04, 2005 5:10 PM
    To: Lucene Users List
    Subject: Re: INDEXREADER + MAXDOC


    On Jan 4, 2005, at 5:19 AM, Karthik N S wrote:
    On using the integer number of Indexreader.maxDoc() API ,

    Is it possible to get the VALUES from the varoius fieldtypes.

    ex:- 'docs.get("contents") at IndexReader.maxdoc()'



    If so How...??
    Just to be sure I understand... you want the last document in the
    index? IndexReader.document(n) will give you this.

    Erik


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org
  • Erik Hatcher at Jan 4, 2005 at 1:19 pm

    On Jan 4, 2005, at 7:29 AM, Karthik N S wrote:

    Hi Erik
    I would like to EXTRACT the DATA from the various fields of the Last
    Document [as u said ]

    Ex: at IndexReader.maxDoc = 100

    doc.get("Content") == "ISBN100"
    doc.get("name") == "LUCENE IN ACTION""
    doc.get("author") == "Erik Hatcher"
    .....

    This is my Requirement.
    So...

    doc = reader.document(100)

    Or am I missing something from what you're asking? You need to have
    the data *stored* in the fields you're going to retrieve from the
    returned Document.

    Erik


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedJan 4, '05 at 10:43a
activeJan 4, '05 at 1:19p
posts4
users2
websitelucene.apache.org

2 users in discussion

Karthik N S: 2 posts Erik Hatcher: 2 posts

People

Translate

site design / logo © 2022 Grokbase