You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2007/10/31 22:08:50 UTC

[jira] Updated: (LUCENE-1040) Can't quickly create StopFilter

     [ https://issues.apache.org/jira/browse/LUCENE-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley updated LUCENE-1040:
---------------------------------

    Attachment: CharArraySet.patch

Attaching patch.  Here's the approach I took:
- change makeStopSet return a CharArraySet
- make CharArraySet a real Set (plus many other small changes)
  - the Iterator returns Strings for backward compatibility with people that
   expect a Set<String>
- StopFilter constructor to directly use Set if instanceof CharArraySet

All tests pass.

> Can't quickly create StopFilter
> -------------------------------
>
>                 Key: LUCENE-1040
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1040
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Yonik Seeley
>            Assignee: Yonik Seeley
>         Attachments: CharArraySet.patch
>
>
> Due to the use of CharArraySet by StopFilter, one can no longer efficiently pre-create a Set for use by future StopFilter instances.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org