lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin Kulkarni <kulk...@hawk.iit.edu>
Subject Re: How does Lucene decide which fields to index?
Date Mon, 04 Aug 2014 16:20:58 GMT
Thank you Ian and Kumaran.

I checked that when I am reading back from the IndexReader,  the fields are
getting stored but not indexed.

Since I am using Lucene's Benchmark utility to index the data, I have to
trace the code to see how it is using the in-built TREC parser to index
data.
But somewhere I am missing the important link in the process.

>From what I see, field.store is specified on all the fields, but
field.index is not specified explicitly.

Thank you again, I will keep looking into the code.

Regards,
Sachin




On Mon, Aug 4, 2014 at 10:26 AM, Kumaran R <kums.134@gmail.com> wrote:

> You should know two things to get this.
> 1.Indexed fields can be searched.
> 2.Stored fields can be fetched.
>
> Check your code whether you are storing all fields.
>
>
> --
> Kumaran R
> Sent from Phone
>
> > On 04-Aug-2014, at 7:13 pm, Sachin Kulkarni <kulksac@hawk.iit.edu>
> wrote:
> >
> > Hi,
> >
> > I am using lucene 4.6.0 to index a dataset.
> > I have the following fields:
> > doctitle, docbody, docname, docid, date.
> > But when I access the fields using
> indexReader.getTermVectors(indexedDocID)
> > then I only get two fields
> > docbody and docname.
> >
> > How do I index so that I also get doctitle?
> >
> > Thank you.
> >
> > Regards,
> > Sachin Kulkarni
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message