public abstract GetFieldNames ( FieldOption fldOption ) : ICollection |
||
fldOption | FieldOption | specifies which field option should be available for the returned fields /// |
return | ICollection |
using Lucene.Net.Index; IndexReader reader = DirectoryReader.Open(indexPath); var fieldNames = reader.GetFieldNames(IndexReader.FieldOption.ALL);
using Lucene.Net.Index; IndexReader reader = DirectoryReader.Open(indexPath); var fieldNames = reader.GetFieldNames(IndexReader.FieldOption.INDEXED);This example retrieves only the indexed field names of the index specified by the indexPath variable. Both examples use the GetFieldNames method of the IndexReader class and specifies the FieldOption parameter to determine which types of fields to retrieve. Therefore, the package library used in these code examples is Lucene.Net.Index.
public abstract GetFieldNames ( FieldOption fldOption ) : ICollection |
||
fldOption | FieldOption | specifies which field option should be available for the returned fields /// |
return | ICollection |