lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Commit Tag Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-4251) SynonymFilter fails when provided with optional tokenizerFactory
Date Tue, 01 Jan 2013 13:34:12 GMT

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

Commit Tag Bot commented on SOLR-4251:
--------------------------------------

[trunk commit] Robert Muir
http://svn.apache.org/viewvc?view=revision&revision=1427399

SOLR-4251: commit test

                
> SynonymFilter fails when provided with optional tokenizerFactory
> ----------------------------------------------------------------
>
>                 Key: SOLR-4251
>                 URL: https://issues.apache.org/jira/browse/SOLR-4251
>             Project: Solr
>          Issue Type: Bug
>          Components: Schema and Analysis
>    Affects Versions: 4.0, 4.0.1, 4.1, 4.2
>            Reporter: Chris Bleakley
>            Priority: Minor
>         Attachments: SOLR-4251.patch
>
>
> Using the solr 4.0 example, if I add an optional tokenizerFactory ( as per http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory
) to the synonymFilter for the "text_general" field type:
> <filter class="solr.SynonymFilterFactory" 
> synonyms="synonyms.txt" 
> tokenizerFactory="solr.StandardTokenizerFactory" 
> ignoreCase="true" 
> expand="true"/>
> I receive the error at startup:
> SEVERE: null:java.lang.IllegalArgumentException: Configuration Error: Factory 'org.apache.lucene.analysis.standard.StandardTokenizerFactory'
needs a 'luceneMatchVersion' parameter
> It also fails if I try adding the param luceneMatchVersion="LUCENE_40" :
> <filter class="solr.SynonymFilterFactory" 
> synonyms="synonyms.txt" 
> tokenizerFactory="solr.StandardTokenizerFactory" 
> luceneMatchVersion="LUCENE_40"
> ignoreCase="true" 
> expand="true"/>
> ----------
> It looks like the delegator in the SynonymFilterFactory is not propagating the LUCENE_MATCH_VERSION
to the tokenizer. For tokenizers that don't require a match version (whitespace) everything
works correctly. This issue seems to be a problem in the 4x branch... trunk removes the code
that delegates between the 2 types of synonym filters.

--
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

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


Mime
View raw message