From: Martin H. <m1...@sn...> - 2006-01-24 23:37:28
|
Ah, I see it. The 'title' field matches the second <when> clause in your <choose> instruction, because it's not 'text' or 'query'. Therefore, the maxSnippets attribute isn't being added. I would suggest this: <!-- Specify the field name for meta-data queries --> <xsl:choose> <xsl:when test=3D"matches(@name, 'keyword')"/> <xsl:when test=3D"not(matches(@name, 'text|query'))"> <xsl:attribute name=3D"field" select=3D"$metaField"/> <xsl:attribute name=3D"maxSnippets" select=3D"'0'"/> </xsl:when> ... --Martin On 1/24/06, Giulia Hill <gh...@li...> wrote: > > > Martin, > > I have changed the queryParser.xml in three places: > > <!-- Specify the field name for meta-data queries --> > <xsl:choose> > <xsl:when test=3D"matches(@name, 'keyword')"/> > <xsl:when test=3D"not(matches(@name, 'text|query'))"> > <xsl:attribute name=3D"field" select=3D"$metaField"/> > </xsl:when> > <xsl:when test=3D"matches(@name, 'text')"> > <xsl:attribute name=3D"field" select=3D"'text'"/> > <xsl:attribute name=3D"maxSnippets" select=3D"'0'"/> > <xsl:attribute name=3D"maxContext" select=3D"'100'"/> > </xsl:when> > <xsl:when test=3D"matches(@name, 'query')"> > <xsl:attribute name=3D"field" select=3D"'text'"/> > <xsl:attribute name=3D"maxSnippets" select=3D"'0'"/> > <xsl:attribute name=3D"maxContext" select=3D"'80'"/> > </xsl:when> > </xsl:choose> > [...] > > <xsl:attribute name=3D"field" select=3D"$field"/> > > <xsl:if test=3D"$field =3D 'text'"> > <xsl:attribute name=3D"maxSnippets" select=3D"'0'"/> > <xsl:attribute name=3D"maxContext" select=3D"'100'"/> > </xsl:if> > > after reloading the servet and reindexing, I still get the highlighted > results and the '...' around the title. > > > http://sunsite2.berkeley.edu:11080/xtf/servlet/org.cdlib.xtf.crossQuery.C= rossQuery?rmode=3Dbtr > search for title: sensor > > Have I missed another setting? > > Giulia > |