Adapt the tokenizer in the analyzer you use to handle specially cases like this. You will probably have to change the syntax for required words.
2009/3/25 王巍巍 <[email protected]> > I designed a campus ftp search engine. As some special words like + - are > reserved lucene words. When user enters a keyword "c++", the result will be > all about "c" not "c++". > Could anybody tell me how can i fix this problem? > > -- > 王巍巍(Weiwei Wang) > Department of Computer Science > Gulou Campus of Nanjing University > Nanjing, P.R.China, 210093 > > Mobile: 86-13913310569 > MSN: [email protected] > Homepage: http://cs.nju.edu.cn/rl/weiweiwang > -- Ted Dunning, CTO DeepDyve 111 West Evelyn Ave. Ste. 202 Sunnyvale, CA 94086 www.deepdyve.com 408-773-0110 ext. 738 858-414-0013 (m) 408-773-0220 (fax)
