Class ElisionTokenFilter


  • public final class ElisionTokenFilter
    extends TokenFilter
    Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). This token filter is implemented using Apache Lucene.
    • Constructor Detail

      • ElisionTokenFilter

        public ElisionTokenFilter​(String name)
        Constructor of TokenFilter.
        Parameters:
        name - The name of the token filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.
    • Method Detail

      • getArticles

        public List<String> getArticles()
        Get the articles property: The set of articles to remove.
        Returns:
        the articles value.
      • setArticles

        public ElisionTokenFilter setArticles​(String... articles)
        Set the articles property: The set of articles to remove.
        Parameters:
        articles - the articles value to set.
        Returns:
        the ElisionTokenFilter object itself.
      • setArticles

        public ElisionTokenFilter setArticles​(List<String> articles)
        Set the articles property: The set of articles to remove.
        Parameters:
        articles - the articles value to set.
        Returns:
        the ElisionTokenFilter object itself.