I was suspecting it might do that - the pattern is "greedy" and takes the
longest matching pattern. Add a question mark after the asterisk to use
stingy mode that matches the shortest pattern.

-- Jack Krupansky

On Wed, Jan 14, 2015 at 8:37 AM, tomas.kalas <kala...@email.cz> wrote:

> I just used Solr UI Analyzer for my test, or must i indexed it firstly?
>
> I used this XML code in my schema:
>
> <fieldType name="direction1" class="solr.TextField"
> positionIncrementGap="100">
>     <analyzer>
>       <charFilter class="solr.PatternReplaceCharFilterFactory"
>                   pattern="&lt;d1&gt;.*&lt;/d1&gt;" replacement=""/>
>       <tokenizer class="solr.KeywordTokenizerFactory"/>
>     </analyzer>
>   </fieldType>
>
> This is my result:
> <http://lucene.472066.n3.nabble.com/file/n4179496/dir1.png>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Tokenizer-or-Filter-tp4178346p4179496.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to