#NEWLINE# def to_query( self , value ) : #NEWLINE# #INDENT# if isinstance ( value , scorched . strings . DismaxString ) : #NEWLINE# #INDENT# ret = value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( value , scorched . strings . WildcardString ) : #NEWLINE# #INDENT# ret = value . escape_for_lqs_term ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ret = scorched . strings . RawString ( self . to_solr ( value ) ) . escape_for_lqs_term ( ) #NEWLINE# #UNINDENT# #UNINDENT# return ret