lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <j...@basetechnology.com>
Subject Re: Can you escape characters you don't want the analyzer to modify
Date Wed, 18 Sep 2013 03:20:05 GMT
It sounds like you either need to have a custom analyzer or a field-aware 
analyzer.

-- Jack Krupansky

-----Original Message----- 
From: Scott Smith
Sent: Tuesday, September 17, 2013 4:26 PM
To: java-user@lucene.apache.org
Subject: Can you escape characters you don't want the analyzer to modify

Suppose I have a string like "ab@cd%d".  My analyzer will turn this into "ab 
cd d".  Can I pass it "ab\@cd\%d" and force it to treat it as a single word? 
I want to use the Query parser, but I don't want it messing with fields that 
have not been analyzed. 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message