简体   繁体   中英

Lucene.Net Search with “#” Not working

I'm using lucene.net to search records in my website. I have lots of records with the special character hash ("#") like "C#", "C#.Net", etc...

But when I search using the term "C#" lucene is not returning any results. I have checked lucene Escaping Special Characters, but "#" is not in this characters list.

Is there a good way to search with the term "#" on Lucene.Net?

I have created my own Analyzer using the WhitespaceTokenizer and it wroked.

https://issues.apache.org/jira/browse/LUCENENET-595

Thanks, Singaravelu

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM