lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Krupansky <jack.krupan...@gmail.com>
Subject Re: Tokenizer or Filter ?
Date Wed, 14 Jan 2015 13:46:26 GMT
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 <kalanek@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message