enable rest interface. enable text search