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

Ahmet Arslan commented on LUCENE-5482:
--------------------------------------

It is possible to achieve described behavior with following existing filters. 
(without a custom filter) Any thoughts on which way is preferred?

{code:xml}
 <filter class="solr.PatternReplaceFilterFactory" pattern="(.*)'(.*)" 
replacement="$1"/>
{code}


{code:xml}
 <filter class="solr.PatternCaptureGroupFilterFactory" pattern="(.*)'" 
preserve_original="false" />
{code}

> improve default TurkishAnalyzer
> -------------------------------
>
>                 Key: LUCENE-5482
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5482
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/analysis
>    Affects Versions: 4.7
>            Reporter: Ahmet Arslan
>            Priority: Minor
>              Labels: Turkish, analysis
>             Fix For: 4.8
>
>         Attachments: LUCENE-5482.patch
>
>
> Add a TokenFilter that strips characters after an apostrophe (including the 
> apostrophe itself). 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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

Reply via email to