(field, text, **kwargs)
Returns the first token from an analyzer's output.
Returns the first token from an analyzer's output.
Returns the first token from an analyzer s output .
def get_single_text(field, text, **kwargs):
    """Returns the first token from an analyzer's output.
    """

    for t in field.process_text(text, mode="query", **kwargs):
        return t
def get_single_text ( field , text , * * kwargs ) : for t in field . process_text ( text , mode = "query" , * * kwargs ) : return t