コード例 #1
0
        public void CreateDateTimeKeywordField()
        {
            FieldAdapter keyword = FieldAdapter.CreateKeywordField("Name", DateTime.Now);

            Assert.AreEqual("Name", keyword.Name);

            Assert.IsFalse(keyword.IsTokenized);
            Assert.IsTrue(keyword.IsIndexed);
            Assert.IsTrue(keyword.IsStored);
        }
コード例 #2
0
        public void CreateKeywordField()
        {
            FieldAdapter keyword = FieldAdapter.CreateKeywordField("Name", "Value");

            Assert.AreEqual("Name", keyword.Name);
            Assert.AreEqual("Value", keyword.StringValue);

            Assert.IsFalse(keyword.IsTokenized);
            Assert.IsTrue(keyword.IsIndexed);
            Assert.IsTrue(keyword.IsStored);
        }