Try to change from StandardTolkenizerFactory to ClassicTokenizerFactory or
create your own fieldType

<fieldType name="text_general" class="solr.TextField"
positionIncrementGap="100">
      <analyzer type="index">
        *<tokenizer class="solr.ClassicTokenizerFactory"/>*
        ...
    </fieldType>


Edo

On Wed, Jul 13, 2011 at 3:40 PM, Kiwi de coder <kiwio...@gmail.com> wrote:

> hi,
>
> I using solr 3.3 which in schema.xml contain this :
>
>    <fieldType name="text_standard" class="solr.TextField">
>      <analyzer class="org.apache.lucene.
> analysis.standard.StandardAnalyzer"/>
>    </fieldType>
>
> i use the sentences as example "XY&Z Corporation - x...@example.com"
>
> however, when I try on /analysis.jsp, it show difference result compare to
> using Lucene.
>
> using solr I got result below when using "text_standard" and "text_general"
> (is both the same ?)
>
> XY    Z    Corporation    xyz    example.com (which all belong to
> <ALPHANUM>
> )
>
> when using Lucene, i got this
>
>  StandardAnalyzer:
>
> 1: [xy&z:0->4:<COMPANY>]
> 2: [corporation:5->16:<ALPHANUM>]
> 3: [x...@example.com:19->34:<EMAIL>]
>
>
> so my question is, how to make it analysis like in Lucene ?
>
> regards,
> kiwi
>



-- 
Edoardo Tosca
Sourcesense - making sense of Open Source: http://www.sourcesense.com

Reply via email to