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 Engy Morsy <En...@bibalex.org> on 2011/07/10 11:53:30 UTC

Increase String length

Dear all,

In schema.xml I had the following fieldType definition

<fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true" />

The length of the string value I am indexing exceeds the default length (256), how do I override the default length in my schema.


Thanks and best regards,
Engy Morsy

Project Manager
ICT Department
Bibliotheca Alexandrina
P.O.Box 138, Chatby
Alexandria 21526, Egypt
Tel: +20-3-4839999 Ext:1423
Fax: +20-3-4820405
E-mail: engy.morsy@bibalex.org<ma...@bibalex.org>
wedsites: http://bibalex.org
                http://dar.bibalex.org


Re: Increase String length

Posted by viruslviv <vi...@gmail.com>.
You can use TextField instead of StrField:

<fieldtype name="string" class="solr.TextField" sortMissingLast="true"
omitNorms="true">

--
View this message in context: http://lucene.472066.n3.nabble.com/Increase-String-length-tp3156430p3159059.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Increase String length

Posted by tautilus <ta...@hotmail.com>.
You can use solr.TextField and KeywordTokenizer because it creates just a
token with the input.
bye

--
View this message in context: http://lucene.472066.n3.nabble.com/Increase-String-length-tp3156430p3159454.html
Sent from the Solr - User mailing list archive at Nabble.com.