C# Class Lucene.Net.Demo.FileDocument

A utility for making Lucene Documents from a File.
Exibir arquivo Open project: synhershko/lucene.net Class Usage Examples

Public Methods

Method Description
Document ( System f ) : Lucene.Net.Documents.Document

Makes a document for a File.

The document has three fields:

  • path--containing the pathname of the file, as a stored, untokenized field;
  • modified--containing the last modified date of the file as a field as created by DateTools; and
  • contents--containing the full contents of the file, as a Reader field;

Private Methods

Method Description
FileDocument ( ) : System

Method Details

Document() public static method

Makes a document for a File.

The document has three fields:

  • path--containing the pathname of the file, as a stored, untokenized field;
  • modified--containing the last modified date of the file as a field as created by DateTools; and
  • contents--containing the full contents of the file, as a Reader field;
public static Document ( System f ) : Lucene.Net.Documents.Document
f System
return Lucene.Net.Documents.Document