Re: lucene 4.10.4 punctuation

2021-08-26 Thread Younes Bahloul
Hi thanks for getting back to me so quickly So to give some context, there are two things we would like to be able to do: 1. We want to have the option to be able to search on terms that include punctuation. So for example, if we have the two texts: "they sent an S.O.S from", and "she wrote SOS, b

RE: lucene 4.10.4 punctuation

2021-08-26 Thread Trevor Nicholls
Hi You want to write your own analyzer which does not lowercase terms and which splits terms at non-alpha or non-alphanumeric characters. You'd use the same analyzer for indexing and for searching. Thus when building the index S.O.S is indexed as the five terms S . O . S and if you search for S