lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From " Сергій Карпенко" <bergschl...@ukr.net>
Subject How I can find wildcard symbol with WildcardQuery?
Date Tue, 19 Aug 2008 13:20:13 GMT

Hello    
    
For example, we have a text:    
    
" Hello w*orld"    
 it's indexed as NO_NORMS, so this phrase is term.    
    
And I have a code:    
    
Query query = new WildcardQuery(new Term("field", " Hello w*orld")); its work    
    
But I need symbol '*' as ordinary symbol, not escape symbol.    
    
The QueryParser's analogue '\\*'    
Query query = new WildcardQuery(new Term("field", " Hello w\\*orld"));    
don't wokrs.    
    
Thanks    
    
    
    
  
Mime
  • Unnamed multipart/alternative (inline, Binary, 0 bytes)
View raw message