You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Kraus, Ralf | pixelhouse GmbH" <rk...@pixelhouse.de> on 2009/04/20 10:34:36 UTC

Big Problem with special characters

Hello,

first some details about my SOLR installation:

schema.xml

    <fieldType name="text_test" class="solr.TextField" 
positionIncrementGap="100" >
        <analyzer type="index">
            <tokenizer class="solr.WhitespaceTokenizerFactory"/>
            <filter class="solr.StopFilterFactory" ignoreCase="true" 
words="stopwords.txt"/>
            <filter class="solr.LengthFilterFactory" min="2" max="50" />
            <filter class="solr.LowerCaseFilterFactory"/>
            <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
            <filter class="solr.SnowballPorterFilterFactory" 
language="german" />
        </analyzer>

        <analyzer type="query">
            <tokenizer class="solr.WhitespaceTokenizerFactory"/>
            <filter class="solr.StopFilterFactory" ignoreCase="true" 
words="stopwords.txt"/>
            <filter class="solr.LowerCaseFilterFactory"/>
            <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
            <filter class="solr.SnowballPorterFilterFactory" 
language="german" />
        </analyzer>
    </fieldType>

Search:
qf=name^2.0+name2^1.5+name3
wt=phps
rows=30
start=0
sort=score+desc
fl=*,score
q=speed
qt=dismax

When I have a string like "(speed)" in "name3" or "name2" SOLR dont find 
it at all :-( If I search for "(speed)" erverything is fine !

Greets -Ralf-


Re: Big Problem with special characters

Posted by "Kraus, Ralf | pixelhouse GmbH" <rk...@pixelhouse.de>.
Otis Gospodnetic schrieb:
> Try &debugQuery=true and see if the resulting query string makes sense.
>
>
> Otis
> --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
thx for the hint...

My problem was the WhitespaceTokenizer :-( After I change back to 
StandardTokenizer everythign was fine !

Greets -Ralf-


Re: Big Problem with special characters

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Try &debugQuery=true and see if the resulting query string makes sense.


Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: "Kraus, Ralf | pixelhouse GmbH" <rk...@pixelhouse.de>
> To: solr-user@lucene.apache.org
> Sent: Monday, April 20, 2009 4:34:36 AM
> Subject: Big Problem with special characters
> 
> Hello,
> 
> first some details about my SOLR installation:
> 
> schema.xml
> 
>   
> >
>       
>           
>           
> words="stopwords.txt"/>
>           
>           
>           
>           
>       
> 
>       
>           
>           
> words="stopwords.txt"/>
>           
>           
>           
>       
>   
> 
> Search:
> qf=name^2.0+name2^1.5+name3
> wt=phps
> rows=30
> start=0
> sort=score+desc
> fl=*,score
> q=speed
> qt=dismax
> 
> When I have a string like "(speed)" in "name3" or "name2" SOLR dont find it at 
> all :-( If I search for "(speed)" erverything is fine !
> 
> Greets -Ralf-