getRootMap() 공개 메소드

public getRootMap ( Query query ) : QueryPhraseMap
query Lucene.Net.Search.Query
리턴 QueryPhraseMap
예제 #1
0
        public void TestGetRootMapNotFieldMatch()
        {
            Query      dummy = PqF("DUMMY");
            FieldQuery fq    = new FieldQuery(dummy, true, false);

            QueryPhraseMap rootMap1 = fq.getRootMap(Tq("a"));
            QueryPhraseMap rootMap2 = fq.getRootMap(Tq("a"));

            Assert.IsTrue(rootMap1 == rootMap2);
            QueryPhraseMap rootMap3 = fq.getRootMap(Tq("b"));

            Assert.IsTrue(rootMap1 == rootMap3);
            QueryPhraseMap rootMap4 = fq.getRootMap(Tq(F1, "b"));

            Assert.IsTrue(rootMap4 == rootMap3);
        }
예제 #2
0
        public void TestGetRootMapNotFieldMatch()
        {
            Query dummy = PqF("DUMMY");
            FieldQuery fq = new FieldQuery(dummy, true, false);

            QueryPhraseMap rootMap1 = fq.getRootMap(Tq("a"));
            QueryPhraseMap rootMap2 = fq.getRootMap(Tq("a"));
            Assert.IsTrue(rootMap1 == rootMap2);
            QueryPhraseMap rootMap3 = fq.getRootMap(Tq("b"));
            Assert.IsTrue(rootMap1 == rootMap3);
            QueryPhraseMap rootMap4 = fq.getRootMap(Tq(F1, "b"));
            Assert.IsTrue(rootMap4 == rootMap3);
        }