public void AddI64FieldWorks() { using (var builder = new SchemaBuilder()) { uint field1 = builder.AddI64Field("test1", new IntOptions()); uint field2 = builder.AddI64Field("test2", new IntOptions()); Assert.NotEqual(field1, field2); } }
public IndexWriterTests() { using (var builder = new SchemaBuilder()) { using (var primaryKeyOptions = new IntOptions().Stored().Fast(Cardinality.SingleValue).Indexed()) { Id = builder.AddI64Field(nameof(Id), primaryKeyOptions); } using (var textFieldOptions = new TextFieldIndexing { Tokenizer = DefaultTokenizers.EnglishStemming }) using (var textOptions = new TextOptions { IndexingOptions = textFieldOptions }) { Text = builder.AddTextField(nameof(Text), textOptions); } Index = Index.CreateInRam(builder.Build()); } }