The prefix query finds documents containing terms that start with the provided prefix.
Inheritance: FtsQueryBase
        public void Export_Omits_Field_If_Not_Provided()
        {
            var query = new PrefixQuery("prefix");

            var expected = JsonConvert.SerializeObject(new
            {
                prefix = "prefix"
            }, Formatting.None);

            Assert.AreEqual(expected, query.Export().ToString(Formatting.None));
        }
        public void Export_Returns_Valud_Json()
        {
            var query = new PrefixQuery("prefix")
                .Field("field");

            var expected = JsonConvert.SerializeObject(new
            {
                prefix = "prefix",
                field = "field"
            }, Formatting.None);

            Assert.AreEqual(expected, query.Export().ToString(Formatting.None));
        }
        public void Boost_WhenBoostIsLessThanZero_ThrowsArgumentOutOfRangeException()
        {
            var query = new PrefixQuery("prefix");

            Assert.Throws<ArgumentOutOfRangeException>(() => query.Boost(-.1));
        }
        public void Boost_ReturnsPrefixQuery()
        {
            var query = new PrefixQuery("prefix").Boost(2.2);

            Assert.IsInstanceOf<PrefixQuery> (query);
        }