lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adm1n <evgeni.evg...@gmail.com>
Subject Re: matching "starts with" only
Date Wed, 09 Oct 2013 20:40:33 GMT
search by "starts with" is something new I have to add, as well as the data I
have to index for this purpose, so it's ok to create a new field.

But once I added the following field type:
<fieldType name="text_general_long" class="solr.TextField"
positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.KeywordTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.KeywordTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
    </fieldType>

And:
<field name="my_name" type="text_general_long" stored="true"
multiValued="false" required="false"/>
indexing, and afterwards searching by "my_name:/^black/ returns no results,
while searching by "my_name:black" returns only "black" document.

What am I missing?

thanks. 



--
View this message in context: http://lucene.472066.n3.nabble.com/matching-starts-with-only-tp4094430p4094453.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message