lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kumaran R <kums....@gmail.com>
Subject Re: How does Lucene decide which fields to index?
Date Mon, 04 Aug 2014 15:26:53 GMT
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
View raw message