lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: newbie seeking explanation of semantics of "Field" class
Date Thu, 19 Feb 2009 03:03:47 GMT
Or:
// store and index this field to allow original field content retrieval and search against
it
myDocument.add(new Field("contents", theFullDocumetText, Field.Store.COMPRESS, Field.Index.ANALYZED));

Otis--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch 




________________________________
From: "rolarenfan@earthlink.net" <rolarenfan@earthlink.net>
To: java-user@lucene.apache.org
Sent: Thursday, February 19, 2009 10:40:52 AM
Subject: Re: newbie seeking explanation of semantics of "Field" class

Thanks to Erick, Matthew, and Uwe -- that does help, a lot. E.g., one bit of code I had (mostly
copied) now makes more sense: 

// add this field, to allow retrieving the full-text: 
myDocument.add(new Field("contents", theFullDocumetText, Field.Store.COMPRESS, Field.Index.NO));

// add this field, to allow keyword search: 
myDocument.add(new Field("contents", theFullDocumetText, Field.Store.NO, Field.Index.ANALYZED));

Right?

-Paul 




---------------------------------------------------------------------
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