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, but she meant Soz", the user
may want to search for the acronym of 'Save our Souls', which would be
"S.O.S", and in this instance they only want to match the first text,
i.e. "they sent an S.O.S from", and not the second.

2. We want to have the option to make our searches case-sensitive. By
default, I think in Lucene with the StandardAnalyzer everything is
converted to lower-case at both index and search time. Instead we want
upper/lower case to be important, so that for example the texts "Hello
said bob", "mike says hello to bob", "The project HeLlO" and "HELLO is
the acronym for" are all different texts, and if the user were to
search for "Hello" they would only match one of the texts, i.e. "Hello
said bob".

Does that help?

On Wed, 25 Aug 2021 at 18:43, Uwe Schindler <u...@thetaphi.de> wrote:

> Hi,
>
> you should explain to use what you exactly want to do: How do you want to
> search, how do your documents look like? Why is it important to match on
> punctuation and how should this matching look like?
>
> Uwe
>
> -----
> Uwe Schindler
> Achterdiek 19, D-28357 Bremen
> https://www.thetaphi.de
> eMail: u...@thetaphi.de
>
> > -----Original Message-----
> > From: Younes Bahloul <you...@evolvedbinary.com>
> > Sent: Wednesday, August 25, 2021 6:34 PM
> > To: java-user@lucene.apache.org
> > Subject: lucene 4.10.4 punctuation
> >
> > Hello
> > i m part of a team that maintain
> > http://exist-db.org/exist/apps/homepage/index.html
> > its an Open Source XML database
> > and we use lucene 4.10.4
> > i m trying to introduce punctuation in search feature
> > is there an analyzer that provides that or a way to  do it in 4.10.4 API
> >
> > thanks Younes
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

Reply via email to