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 Bram de Jong <br...@gmail.com> on 2008/05/29 12:21:38 UTC

schema for "literal string, case insensitive"

hello all,

a while ago I was looking into making the schema for my (rather rich)
data set, and I wanted to have a field for username.
I would need a case insensitive string for that, but literal (no
tokenizing, ...).

how can I do this within the Solr schema definition?

 - bram

-- 
http://freesound.iua.upf.edu
http://www.smartelectronix.com
http://www.musicdsp.org

Re: schema for "literal string, case insensitive"

Posted by Rob Casson <ro...@gmail.com>.
bram,

you'll want to look at the KeywordTokenizerFactory (which doesn't
actually tokenize), and then use the LowerCaseFilterFactory.  the
schema in the example has a fieldType called 'alphaOnlySort' that
should get you started.

cheers,
rob

On Thu, May 29, 2008 at 6:21 AM, Bram de Jong <br...@gmail.com> wrote:
> hello all,
>
> a while ago I was looking into making the schema for my (rather rich)
> data set, and I wanted to have a field for username.
> I would need a case insensitive string for that, but literal (no
> tokenizing, ...).
>
> how can I do this within the Solr schema definition?
>
>  - bram
>
> --
> http://freesound.iua.upf.edu
> http://www.smartelectronix.com
> http://www.musicdsp.org
>