A docId query is a query that directly matches the documents whose ID have been provided. It can be combined within a ConjunctionQuery to restrict matches on the set of documents.
Inheritance: FtsQueryBase
        public void Export_With_SearchParams_ReturnsValidJson()
        {
            var query = new DocIdQuery("foo");

            var searchParams = new SearchParams();
            var result = query.Export(searchParams).ToString(Formatting.None);

            var expected = JsonConvert.SerializeObject(new
            {
                ctl = new
                {
                    timeout = 75000
                },
                query = new
                {
                    boost = 0.0,
                    ids = new[]
                    {
                        "foo"
                    }
                }
            }, Formatting.None);

            Assert.AreEqual(expected, result);
        }
        public void Export_ReturnsValidJson()
        {
            var query = new DocIdQuery("foo", "bar");

            var expected = JsonConvert.SerializeObject(new
            {
                ids = new[] {"foo", "bar"}
            }, Formatting.None);

            Assert.AreEqual(expected, query.Export().ToString(Formatting.None));
        }
        public void Export_ReturnsValidJson()
        {
            var query = new DocIdQuery("foo");
            var result = query.Export().ToString(Formatting.None);

            var expected = JsonConvert.SerializeObject(new
            {
                query = new
                {
                    boost = 0.0,
                    ids = new[]
                    {
                        "foo"
                    }
                }
            }, Formatting.None);

            Assert.AreEqual(expected, result);
        }