Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Index file contents
- Field contentField = new Field(
- FieldContent,
- message.content,
- Field.Store.YES,
- Field.Index.ANALYZED,
- Field.TermVector.YES);
- // The id of the document
- Field messageIdField = new Field(
- FieldMessageId,
- message.serverMessageId,
- Field.Store.YES,
- Field.Index.NOT_ANALYZED);
- // The dateTime that the document was created
- Field timeStampField = new Field(
- FieldTimeStamp,
- message.creationDate.ToString(),
- Field.Store.YES,
- Field.Index.NOT_ANALYZED);
Advertisement
Add Comment
Please, Sign In to add comment