verbatim from schema.xml: " <!-- The StrField type is not analyzed, but indexed/stored verbatim. - StrField and TextField support an optional compressThreshold which limits compression (if enabled in the derived fields) to values which exceed a certain size (in characters). --> "
so basically what this means is that when you index "Hello there mate" the only text that is indexed and therefore searchable is the exact phrase "Hello there mate" and *not* the terms Hello - there - mate. What you need is a solr.TextField based type which splits ( tokenizes) your text. On 14 October 2010 14:07, PeterKerk <vettepa...@hotmail.com> wrote: > > This is the definition > > <fieldType name="string" class="solr.StrField" sortMissingLast="true" > omitNorms="true"/> > > <field name="introtext" type="string" indexed="true" stored="true"/> > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/check-if-field-CONTAINS-a-value-as-opposed-to-IS-of-a-value-tp1700495p1700893.html > Sent from the Solr - User mailing list archive at Nabble.com. >