1. A computer-implemented method for indexing, comprising: in response to a search query having a search term received from a client, determining a current language locale; dynamically building a state machine having a plurality of nodes to represent variance of the search term having identical meaning of the search term based on the current language locale; traversing each node of the state machine to identify one or more postings lists of an inverted index corresponding to each node of the state machine; and returning to the client one or more item identifiers obtained from the one or more postings list, the item identifiers identifying one or more files that contain the variance of the search term represented by the state machine.