Github user xubo245 commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2378#discussion_r195934536 --- Diff: integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/detailquery/SearchModeTestCase.scala --- @@ -111,22 +111,26 @@ class SearchModeTestCase extends QueryTest with BeforeAndAfterAll { } test("test lucene datamap with search mode") { + sql("set carbon.search.enabled = true") sql("DROP DATAMAP IF EXISTS dm ON TABLE main") sql("CREATE DATAMAP dm ON TABLE main USING 'lucene' DMProperties('INDEX_COLUMNS'='id') ") + sql(s"SELECT * FROM main WHERE id='100000'").show() checkAnswer(sql("SELECT * FROM main WHERE TEXT_MATCH('id:100000')"), sql(s"SELECT * FROM main WHERE id='100000'")) sql("DROP DATAMAP if exists dm ON TABLE main") } test("test lucene datamap with search mode 2") { + sql("set carbon.search.enabled = true") sql("drop datamap if exists dm3 ON TABLE main") sql("CREATE DATAMAP dm3 ON TABLE main USING 'lucene' DMProperties('INDEX_COLUMNS'='city') ") - checkAnswer(sql("SELECT * FROM main WHERE TEXT_MATCH('city:city6')"), - sql("SELECT * FROM main WHERE city='city6'")) + checkAnswer(sql("SELECT * FROM main WHERE TEXT_MATCH('city:city5')"), --- End diff -- before city5 can work, but city6 can not work. After this PR, city6 can work
---