Thanks Erik. Actually, I restarted and reindexed numers of time, but still not working.
RE: your question, I intend to use this field for automatic PHRASED boosting; is that ok?: <str name="pf"> title_sort </str> Thanks. 2010/3/23 Erick Erickson <erickerick...@gmail.com> > Did you restart solr and reindex? just changing the field definition > won't help you without reindexing... > > One thing worries me about your fragment, you call it text_Sort. > If you really intend to sort by this field, it may NOT be tokenized, > you'll probably have to use copyfield.... > > HTH > Erick > > On Tue, Mar 23, 2010 at 12:45 PM, Saïd Radhouani <r.steve....@gmail.com > >wrote: > > > Thanks Markus. It says that a tokenizer ust be defined for the field. > > Here's > > is the fildType I'm using and the field I want to highlight on. As you > can > > see, I defined a tokenizer, but it's not working though. Any idea? > > > > In the schema: > > > > <fieldType name="text_Sort" class="solr.TextField" > > sortMissingLast="true" omitNorms="true"> > > <analyzer> > > <tokenizer class="solr.KeywordTokenizerFactory" /> > > <filter class="solr.LowerCaseFilterFactory" /> > > <filter class="solr.TrimFilterFactory" /> > > </analyzer> > > </fieldType> > > > > <field name="title_sort" type="text_Sort" indexed="true" > > stored="true" multiValued="false" /> > > > > In solrconfig.xml: > > <str name="hl.fl">title_sort text_description </str> > > > > At the same time, I wanted to highlight phrases (including stop words), > but > > it's not working. I use "" and as you can see in my fieldType, I don't > have > > a stopword filter. Any idea? > > > > Thanks a lot, > > -S. > > > > > > Thanks > > > > > > 2010/3/23 Markus Jelsma <mar...@buyways.nl> > > > > > Hello, > > > > > > > > > Check out the wiki [1] on what options to use for highlighting and > other > > > components. > > > > > > > > > [1]: http://wiki.apache.org/solr/FieldOptionsByUseCase > > > > > > > > > Cheers, > > > > > > > > > > > > On Tuesday 23 March 2010 17:11:42 Saïd Radhouani wrote: > > > > I have trouble with highlighting field of type "string". It looks > like > > > > highlighting is only working with tokenized fields, f.i., it worked > > with > > > > text and another type I defined. Is this true, or I'm making a > mistake > > > that > > > > is preventing me to have the highlighting option working on string? > > > > > > > > Thanks for your help. > > > > > > > > > > Markus Jelsma - Technisch Architect - Buyways BV > > > http://www.linkedin.com/in/markus17 > > > 050-8536620 <http://www.linkedin.com/in/markus17%0A050-8536620> / > > > 06-50258350 > > > > > > > > >