I would like to deal with apostrophes in Lucene. Let's give an example. I have the following sentence : "L'arbre est vert". I would like to know how can I create a query on the word "arbre" 'without the apostrophe). With the StandardAnalyzer I need to write "L'arbre" to have a positive answer.
Note that there is one question here : Lucene Indexing to ignore apostrophes. But as I am quite new in Lucene I would like to have an example (code snippet that works in Lucene 5.3).