Lucene and Special Characters

后端 未结 2 1169
再見小時候
再見小時候 2021-01-11 23:27

I am using Lucene.Net 2.0 to index some fields from a database table. One of the fields is a \'Name\' field which allows special characters. When I perform a search, it does

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-11 23:49

    StandardAnalyzer strips out the special characters during indexing. You can pass in a list of explicit stopwords (excluding the ones you want in).

提交回复
热议问题