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