encoding search