On Aug 18, 2005, at 4:16 PM, [EMAIL PROTECTED] wrote:
Thanks! I have used StopAnalyzer to index. Does it lower-case beforeindexing? I don't touch the query string before sending for searching, sothe query string is not lower-cases.
Pretty much all built-in Lucene analyzers lower-case:http://svn.apache.org/repos/asf/lucene/java/trunk/src/java/org/ apache/lucene/analysis/StopAnalyzer.java (scroll to the bottom to see the tokenStream method - the heart of an analyzer)
The exception is the WhitespaceAnalyzer, which is probably not what you want to use. You can write your own Analyzer (copy/paste one and remove the lowercasing filter - though some analyzers use a lowercasing tokenizer, not a filter).
Erik
The search really is case sensitive, it's just that all input isusually lower-cased, so it feels like it's case insensitive. In otherwords, don't lower-case your input before indexing, and don't lower-case your queries (i.e. pick an Analyzer that doesn't lower-case). Otis --- [EMAIL PROTECTED] wrote:Is there any way to do a case-sensitive search? Thanks Tareque ControlDOCS-------------------------------------------------------------------- -To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
