lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adm1n <>
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"
      <analyzer type="index">
        <tokenizer class="solr.KeywordTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      <analyzer type="query">
        <tokenizer class="solr.KeywordTokenizerFactory"/>
        <filter class="solr.LowerCaseFilterFactory"/>

<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?


View this message in context:
Sent from the Solr - User mailing list archive at

View raw message