Solr 3.3.0
I have a field/type indexed as below.
For a particular document the content of this field is
'FreeBSD,Perl,Linux,Unix,SQL,MySQL,Exim,Postgresql,Apache,Exim'
Using eDismax, mm=1
When I query for...
+perl +(apache sql) +(linux unix)
Strangely, the highlighting is being returned as...
FreeBSD,<em>Perl,Linux,Unix,SQL,MySQL,Exim,Postgresql,Apache</em>,Exim
The full call is...
/select/?qt=core&q=%2Bperl%20%2B%28apache%20sql%29%20%2B%28linux%20unix%29&fl=skills&hl=true&hl.fl=skills&fq=id:2819615
I've checked the matching in the online analyser which looks fine, so
can't understand why the highlighting isn't correct, I would have
thought the highlighting would have highlighted in the same way the
analyser tool does?
Is it an index-time/field type issue, or am I missing something in the
request?
Thanks in advance...
<fieldType name="textgen" class="solr.TextField"
positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" enablePositionIncrements="true" />
<filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="1"
catenateNumbers="1" catenateAll="0" splitOnCaseChange="0"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" enablePositionIncrements="true" />
<filter class="solr.WordDelimiterFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="0"
catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
<field name="skills" type="textgen" indexed="true"
stored="true" multiValued="false" />
--
IntelCompute
Web Design & Local Online Marketing
http://www.intelcompute.com