lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Updated) (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3883) Analysis for Irish
Date Tue, 20 Mar 2012 04:29:42 GMT


Robert Muir updated LUCENE-3883:

    Attachment: LUCENE-3883.patch

updated patch, with a simple solution to the hyphen-phrasequery-problem:

I added a special stopset just for these:
   * When StandardTokenizer splits t‑athair into {t, athair}, we don't
   * want to cause a position increment, otherwise there will be problems
   * with phrase queries versus tAthair (which would not have a gap).
  private static final CharArraySet HYPHENATIONS = CharArraySet.unmodifiableSet(
      new CharArraySet(Version.LUCENE_CURRENT,
              "h", "n", "t"
          ), true));

This is used with enablePositionIncrements=false to ensure no gap is added... I also added
a simple test for this.
> Analysis for Irish
> ------------------
>                 Key: LUCENE-3883
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: modules/analysis
>            Reporter: Jim Regan
>            Priority: Trivial
>              Labels: analysis, newbie
>         Attachments: LUCENE-3883.patch, LUCENE-3883.patch, irish.sbl
> Adds analysis for Irish.
> The stemmer is generated from a snowball stemmer. I've sent it to Martin Porter, who
says it will be added during the week.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message