incubator-blur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gagan Deep Juneja (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BLUR-49) BlurAnalyzer add constructor arguments
Date Mon, 07 Jan 2013 07:42:12 GMT

    [ https://issues.apache.org/jira/browse/BLUR-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13545685#comment-13545685
] 

Gagan Deep Juneja commented on BLUR-49:
---------------------------------------

I tried some solution for this like.
public BlurAnalyzer(org.apache.blur.thrift.generated.ClassDefinition classDefinition) {
    Set<String> stopWordsSet = classDefinition.getArguments().keySet();
    _defaultAnalyzer = new StandardAnalyzer(LUCENE_VERSION,stopWordsSet);
  }

Is this the only use case we need to handle or do we need to make this generic? 

Gagan
                
> BlurAnalyzer add constructor arguments
> --------------------------------------
>
>                 Key: BLUR-49
>                 URL: https://issues.apache.org/jira/browse/BLUR-49
>             Project: Apache Blur
>          Issue Type: Bug
>    Affects Versions: 0.2.0
>            Reporter: Aaron McCurry
>             Fix For: 0.2.0
>
>
> In the 0.2-dev branch, the BlurAnalyzer should be enhanced to allow constructor arguments
to be passed in the ClassDefinition.arguments map.  Not sure what the best way to implement
this, but the use case would be creating a StandardAnalyzer with a non-default set of stop
words.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message