You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2010/07/26 01:51:53 UTC

[jira] Commented: (SOLR-1860) improve stopwords list handling

    [ https://issues.apache.org/jira/browse/SOLR-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892154#action_12892154 ] 

Robert Muir commented on SOLR-1860:
-----------------------------------

I'd still like to fix all this duplication between wordlistloader etc, but for now i will add the snowball stop support and introduce examples that use the embedded stopwords in the jar files.

And as discussed on SOLR-2015, if we are gonna lay down traps for other languages like autogenerating phrase queries, then these should be in the main schema.xml, not tucked away.


> improve stopwords list handling
> -------------------------------
>
>                 Key: SOLR-1860
>                 URL: https://issues.apache.org/jira/browse/SOLR-1860
>             Project: Solr
>          Issue Type: Improvement
>          Components: Schema and Analysis
>    Affects Versions: 3.1
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>            Priority: Minor
>
> Currently Solr makes it easy to use english stopwords for StopFilter or CommonGramsFilter.
> Recently in lucene, we added stopwords lists (mostly, but not all from snowball) to all the language analyzers.
> So it would be nice if a user can easily specify that they want to use a french stopword list, and use it for StopFilter or CommonGrams.
> The ones from snowball, are however formatted in a different manner than the others (although in Lucene we have parsers to deal with this).
> Additionally, we abstract this from Lucene users by adding a static getDefaultStopSet to all analyzers.
> There are two approaches, the first one I think I prefer the most, but I'm not sure it matters as long as we have good examples (maybe a foreign language example schema?)
> 1. The user would specify something like:
>  <filter class="solr.StopFilterFactory" fromAnalyzer="org.apache.lucene.analysis.FrenchAnalyzer" .../>
>  This would just grab the CharArraySet from the FrenchAnalyzer's getDefaultStopSet method, who cares where it comes from or how its loaded.
> 2. We add support for snowball-formatted stopwords lists, and the user could something like:
> <filter class="solr.StopFilterFactory" words="org/apache/lucene/analysis/snowball/french_stop.txt" format="snowball" ... />
> The disadvantage to this is they have to know where the list is, what format its in, etc. For example: snowball doesn't provide Romanian or Turkish
> stopword lists to go along with their stemmers, so we had to add our own.
> Let me know what you guys think, and I will create a patch.

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org