incubator-blur-dev mailing list archives

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


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? 

> BlurAnalyzer add constructor arguments
> --------------------------------------
>                 Key: BLUR-49
>                 URL:
>             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

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:

View raw message