This paper investigates the capabilities of query data for ‘company name’ to provide insights into the movement of bid-ask spread of stock, which is a basic component of transaction cost. The magnitude of bid-ask spread has an impact on measuring trading performance. Results from econometric techniques on a sample of 497 stocks reveal that the bid-ask spread of a stock is correlated with the search volume of the corresponding company name. Furthermore, we find that the stocks of more searched companies are likely to be traded at a lower bid-ask spread. However, if search is motivated by negative sentiment, the bid-ask spread will rise. This finding illustrates that the fluctuation of bid-ask spread can be anticipated by query data that will assist investors to make trading decisions prudently.