code: @Override
      public CharSequence convertToString(Cursor cursor) {
          if (cursor == null) {
              return null;
          }
  
          String query = getColumnString(cursor, SearchManager.SUGGEST_COLUMN_QUERY);
          if (query != null) {
              return query;
          }
  
          if (mSearchable.shouldRewriteQueryFromData()) {
              String data = getColumnString(cursor, SearchManager.SUGGEST_COLUMN_INTENT_DATA);
              if (data != null) {
                  return data;
              }
          }
  
          if (mSearchable.shouldRewriteQueryFromText()) {
              String text1 = getColumnString(cursor, SearchManager.SUGGEST_COLUMN_TEXT_1);
              if (text1 != null) {
                  return text1;
              }
          }
  
          return null;
      }
docs: Gets the text to show in the query field when a suggestion is selected.
  
  @param cursor The Cursor to read the suggestion data from. The Cursor should already
  be moved to the suggestion that is to be read from.
  @return The text to show, or <code>null</code> if the query should not be
  changed when selecting this suggestion.