6/30/2023 0 Comments Dictionaries of names![]() ![]() Normally, the first dictionary that returns a non- NULL output determines the result, and any remaining dictionaries are not consulted but a filtering dictionary can replace the given word with a modified word, which is then passed to subsequent dictionaries. If it is identified as a stop word, or if no dictionary recognizes the token, it will be discarded and not indexed or searched for. When a token of that type is found by the parser, each dictionary in the list is consulted in turn, until some dictionary recognizes it as a known word. For each token type that the parser can return, a separate list of dictionaries is specified by the configuration. If no existing template is suitable, it is possible to create new ones see the contrib/ area of the PostgreSQL distribution for examples.Ī text search configuration binds a parser together with a set of dictionaries to process the parser's output tokens. Each predefined dictionary template is described below. There are also several predefined templates that can be used to create new dictionaries with custom parameters. PostgreSQL provides predefined dictionaries for many languages. ![]() NULL if the dictionary does not recognize the input token ![]() An array of lexemes if the input token is known to the dictionary (notice that one token can produce more than one lexeme)Ī single lexeme with the TSL_FILTER flag set, to replace the original token with a new token to be passed to subsequent dictionaries (a dictionary that does this is called a filtering dictionary)Īn empty array if the dictionary knows the token, but it is a stop word ![]()
0 Comments
Leave a Reply. |