Lucene search and underscores
        Posted  
        
            by Matt
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Matt
        
        
        
        Published on 2010-03-26T00:44:24Z
        Indexed on 
            2010/03/29
            17:23 UTC
        
        
        Read the original article
        Hit count: 694
        
When I use Luke to search my Lucene index using a standard analyzer, I can see the field I am searchng for contains values of the form MY_VALUE. When I search for field:"MY_VALUE" however, the query is parsed as field:"my value"
Is there a simple way to escape the underscore (_) character so that it will search for it?
© Stack Overflow or respective owner