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 pcu <pe...@eea.sk> on 2009/01/15 11:58:45 UTC
wildcard with capital letters
Hello,
I am working on simple prototype using solr but I did not figure out how to
configure solr to give me the right results.
for example if I use this field:
<fieldType name="sng.text" class="solr.TextField"
positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory"
ignoreCase="true"
words="stopwords.txt"
enablePositionIncrements="true"
/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
generateNumberParts="1" catenateWords="0" catenateNumbers="0"
catenateAll="0" splitOnCaseChange="1"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
</fieldType>
and put 'Koller, Julo' into this field
then get this results
PASSED: search("koller")
PASSED: search("julo")
PASSED: search("KOLLER")
PASSED: search("JULO")
PASSED: search("Koller")
PASSED: search("Julo")
PASSED: search("kolle*")
PASSED: search("jul*")
FAILED: search("KOLLE*")
java.lang.AssertionError: trying found KOLLE* in Koller, Julo expected:<0>
but was:<1>
FAILED: search("JUL*")
java.lang.AssertionError: trying found JUL* in Koller, Julo expected:<0> but
was:<1>
FAILED: search("Kolle*")
java.lang.AssertionError: trying found Kolle* in Koller, Julo expected:<0>
but was:<1>
FAILED: search("Jul*")
java.lang.AssertionError: trying found Jul* in Koller, Julo expected:<0> but
was:<1>
Why wildcard with at least one capital letters does not work.
thanks in advance
Peter
--
View this message in context: http://www.nabble.com/wildcard-with-capital-letters-tp21475396p21475396.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: wildcard with capital letters
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Thu, Jan 15, 2009 at 4:28 PM, pcu <pe...@eea.sk> wrote:
> Why wildcard with at least one capital letters does not work.
Prefix queries are not analysed. So the query you are making is of a
different case than the tokens in the index. Before sending the query to
Solr, you can lowercase it yourself.
>
>
> thanks in advance
>
> Peter
> --
> View this message in context:
> http://www.nabble.com/wildcard-with-capital-letters-tp21475396p21475396.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
--
Regards,
Shalin Shekhar Mangar.